<template>
	<view class="wrap">
		<!-- tab -->
		<view class="tabBoxs">
			<u-search @search="search" @custom="search" placeholder="请输入身份证"  action-text="查询"  v-model="keyword"></u-search>
							
			<u-tabs v-show="yesInfo" name="cate_name" count="cate_count" :list="TabList" :is-scroll="false"
				:current="current" @change="changeTab" :show-bar="false"></u-tabs>	
		
		</view>
		
		<u-form v-show="yesInfo" label-width="120" :model="model" :rules="rules" ref="uForm" :errorType="errorType">
			<!-- 基本信息 -->
			<view v-show="current == 0">
				<u-form-item :label-position="labelPosition" label="劳动者姓名" prop="laborName">
					<u-input :border="border" placeholder="请输入劳动者姓名" v-model="model.laborName" type="text"></u-input>
				</u-form-item>
				<u-form-item :label-position="labelPosition" label="劳动者身份证号码" prop="idCard">
					<u-input :border="border" placeholder="请输入劳动者身份证号码" v-model="model.idCard" type="text"></u-input>
				</u-form-item>
				<u-form-item :label-position="labelPosition" label="户主姓名" prop="headName">
					<u-input :border="border" placeholder="请输入户主姓名" v-model="model.headName" type="text"></u-input>
				</u-form-item>
				<!-- 新增户主身份证号 -->
				<u-form-item :label-position="labelPosition" label="户主身份证号码" prop="headIdCard">
					<u-input :border="border" placeholder="请输入户主身份证号码" v-model="model.headIdCard" type="text"></u-input>
				</u-form-item>
				
				
				
				<u-form-item :label-position="labelPosition" label="联系电话" prop="tell" label-width="150">
					<u-input :border="border" placeholder="联系电话" v-model="model.tell" type="number"></u-input>
				</u-form-item>
				
				<u-form-item :label-position="labelPosition" label="与户主关系" prop="headRelation" label-width="150">
					<u-input :border="border" type="select" :select-open="headRelationShow" v-model="model.headRelation"
						placeholder="请选择与户主关系" @click="headRelationShow = true"></u-input>
				</u-form-item>
				<u-select mode="single-column" :list="headRelationList" v-model="headRelationShow"
					@confirm="FnConfirm('headRelation', $event)" ></u-select>
				
				<u-form-item :label-position="labelPosition" label="年龄">
					<u-input disabled :border="border" placeholder="请输入年龄" v-model="model.age" type="text"></u-input>
				</u-form-item>
				<u-form-item :label-position="labelPosition" label="性别">
					<u-input disabled :border="border" placeholder="请输入性别" v-model="model.sex" type="text"></u-input>
				</u-form-item>
				
				
				<u-form-item :label-position="labelPosition" label="族别" prop="ethnicity" label-width="150">
					<u-input :border="border" type="select" :select-open="ethnicityShow" v-model="model.ethnicity"
						placeholder="族别" @click="ethnicityShow = true"></u-input>
				</u-form-item>
				<u-select mode="single-column" :list="ethnicityList" v-model="ethnicityShow"
					@confirm="FnConfirm('ethnicity', $event)"></u-select>
				
			
				<u-form-item :label-position="labelPosition" label="政治面貌" prop="politicalOutlook" label-width="150">
					<u-input :border="border" type="select" :select-open="PoliticaShow" v-model="model.politicalOutlook"
						placeholder="政治面貌" @click="PoliticaShow = true"></u-input>
				</u-form-item>
				<u-select mode="single-column" :list="politicalOutlookList" v-model="PoliticaShow"
					@confirm="FnConfirm('politicalOutlook', $event)"></u-select>
				
				
				<u-form-item :label-position="labelPosition" label="文化程度" label-width="150" prop="education">
					<u-input :border="border" type="select" :select-open="educationShow" v-model="model.education"
						placeholder="请选择文化程度" @click="educationShow = true"></u-input>
				</u-form-item>
				
				<u-select mode="single-column" :list="educationList" v-model="educationShow"
					@confirm="FnConfirm('education', $event)"></u-select>
				
				
				<u-form-item :label-position="labelPosition" label="毕业时间" v-show="isShow2">
					<u-input :readonly="true" @click="graduationTimeshow = true" :border="border"
						placeholder="请输入毕业时间（大专、高职及以上毕业生）" v-model="model.graduationTime" type="select"></u-input>
				</u-form-item>
				<!-- <u-calendar v-model="graduationTimeshow" @change="changegraduationTimes" mode="date" max-date='2050-01-01'></u-calendar> -->
				<!-- <u-picker v-model="graduationTimeshow" @confirm="changegraduationTimes" mode="time"></u-picker> -->
					<u-picker mode="time" v-model="graduationTimeshow" @confirm="changegraduationTimes" ></u-picker>
				
				
				<!-- 增设毕业院校 -->
				<u-form-item :label-position="labelPosition" label="毕业院校（大专及以上学历填写）" prop="university" label-width="150" v-show="isShow2">
					<u-input :border="border" placeholder="毕业院校（大专及以上学历填写）" v-model="model.university" type="text"></u-input>
				</u-form-item>
				<!-- 增设专业（大专及以上学历填写） -->
				<u-form-item :label-position="labelPosition" label="专业（大专及以上学历填写）" prop="major" label-width="150" v-show="isShow2">
					<u-input :border="border" placeholder="专业（大专及以上学历填写）" v-model="model.major" type="text"></u-input>
				</u-form-item>
		
		
		
				<u-form-item :label-position="labelPosition" label="技能特长" label-width="150" prop="skills">
					<u-input :border="border" type="select" :select-open="skillsShow" v-model="model.skills"
						placeholder="请选择技能特长" @click="skillsShow = true"></u-input>
				</u-form-item>
				
				<u-select mode="single-column" :list="skillsList" v-model="skillsShow"
					@confirm="FnConfirm('skills', $event)"></u-select>
		
		
				<u-form-item :label-position="labelPosition" label="人员类别" label-width="150" prop="povertyAttr">
					<u-input :border="border" type="select" :select-open="povertyAttrShow" v-model="model.povertyAttr"
						placeholder="请选择人员类别" @click="povertyAttrShow = true"></u-input>
				</u-form-item>
				<u-select mode="single-column" :list="povertyAttrList" v-model="povertyAttrShow"
					@confirm="FnConfirm('povertyAttr', $event)"></u-select>
					
					
					
				<u-form-item :label-position="labelPosition" label="是否易扶搬迁户" prop="isMove">
					<u-radio-group v-model="model.isMove" :width="radioCheckWidth" :wrap="radioCheckWrap">
						<u-radio shape="circle" v-for="(item, index) in radioList" :key="index" :name="item.name">{{
								item.name
						}}</u-radio>
					</u-radio-group>
				</u-form-item>
				
				<!-- 增设易扶搬迁户所在安置点名称 -->
				<u-form-item :label-position="labelPosition" label="易扶搬迁户所在安置点名称" label-width="150" v-show="isShow4"  >
					<u-input :border="border" type="select" :select-open="sitenameShow" v-model="model.sitename"
						placeholder="易扶搬迁户所在安置点名称" @click="sitenameShow = true"></u-input>
				</u-form-item>
				<u-select mode="single-column" :list="sitenameList" v-model="sitenameShow"
					@confirm="FnConfirm('sitename', $event)"></u-select>
					
				
				
				<u-form-item :label-position="labelPosition" label="是否低保户" prop="dibao">
					<u-radio-group v-model="model.dibao" :width="radioCheckWidth" :wrap="radioCheckWrap">
						<u-radio shape="circle" v-for="(item, index) in radioList" :key="index" :name="item.name">{{
								item.name
						}}</u-radio>
					</u-radio-group>
				</u-form-item>
				
				
				
				<u-form-item :label-position="labelPosition" label="是否退役军人" prop="isSoldier">
					<u-radio-group v-model="model.isSoldier" :width="radioCheckWidth" :wrap="radioCheckWrap">
						<u-radio shape="circle" v-for="(item, index) in radioList" :key="index" :name="item.name">{{
								item.name
						}}</u-radio>
					</u-radio-group>
				</u-form-item>
				<u-form-item :label-position="labelPosition" label="是否戒毒康复人员" prop="isRecovery">
		
					<u-radio-group v-model="model.isRecovery" :width="radioCheckWidth" :wrap="radioCheckWrap">
						<u-radio shape="circle" v-for="(item, index) in radioList" :key="index" :name="item.name" >{{
								item.name
						}}</u-radio>
					</u-radio-group>
		
				</u-form-item>
				<u-form-item :label-position="labelPosition" label="是否突发困难人员" prop="isBurstDiff">
					<u-radio-group v-model="model.isBurstDiff" :width="radioCheckWidth" :wrap="radioCheckWrap">
						<u-radio shape="circle" v-for="(item, index) in radioList" :key="index" :name="item.name" >{{
								item.name
						}}</u-radio>
					</u-radio-group>
				</u-form-item>
				
				
				<u-form-item :label-position="labelPosition" label="突发原因" v-show="isShow">
					<u-input :border="border" placeholder="请输入突发原因" v-model="model.burstReason" type="text"></u-input>
				</u-form-item>
				
				<u-form-item :label-position="labelPosition" label="是否刑满释放人员" prop="isPrison">
					<u-radio-group v-model="model.isPrison" :width="radioCheckWidth" :wrap="radioCheckWrap">
						<u-radio shape="circle" v-for="(item, index) in radioList" :key="index" :name="item.name">{{
								item.name
						}}</u-radio>
					</u-radio-group>
		
				</u-form-item>
				<u-form-item :label-position="labelPosition" label="是否城镇登记失业人员" prop="isLoseWork">
					<u-radio-group v-model="model.isLoseWork" :width="radioCheckWidth" :wrap="radioCheckWrap">
						<u-radio shape="circle" v-for="(item, index) in radioList" :key="index" :name="item.name">{{
								item.name
						}}</u-radio>
					</u-radio-group>
				</u-form-item>
				<u-form-item :label-position="labelPosition" label="是否就业困难人员" prop="isJobDiff">
		
					<u-radio-group v-model="model.isJobDiff" :width="radioCheckWidth" :wrap="radioCheckWrap">
						<u-radio shape="circle" v-for="(item, index) in radioList" :key="index" :name="item.name">{{
								item.name
						}}</u-radio>
					</u-radio-group>
		
				</u-form-item>
				
				<!-- 增设就业困难人员类型 -->
				<u-form-item :label-position="labelPosition" label="就业困难人员类型" label-width="150" v-show="isShow1">
					<u-input :border="border" type="select" :select-open="difficultTypeShow" v-model="model.difficultType"
						placeholder="就业困难人员类型" @click="difficultTypeShow = true"></u-input>
				</u-form-item>
				<u-select mode="single-column" :list="difficultTypeList" v-model="difficultTypeShow"
					@confirm="FnConfirm('difficultType', $event)"></u-select>
				
				
				
				<u-form-item :label-position="labelPosition" label="是否残疾人劳动力" prop="isDisabled">
					<u-radio-group v-model="model.isDisabled" :width="radioCheckWidth" :wrap="radioCheckWrap">
						<u-radio shape="circle" v-for="(item, index) in radioList" :key="index" :name="item.name">{{
								item.name
						}}</u-radio>
					</u-radio-group>
				</u-form-item>
				
				
				<!-- 增设残疾类别等级 -->
				<u-form-item :label-position="labelPosition" label="残疾类别等级" v-show="isShow5">
					<u-input :border="border" placeholder="请输入残疾类别等级" v-model="model.disabilityType" type="text">
					</u-input>
				</u-form-item>
				
				<!-- 增设 是否特困户-->
				<u-form-item :label-position="labelPosition" label="是否特困户" prop="ifDifficult">
						
					<u-radio-group v-model="model.ifDifficult" :width="radioCheckWidth" :wrap="radioCheckWrap">
						<u-radio shape="circle" v-for="(item, index) in radioList" :key="index" :name="item.name">{{
								item.name
						}}</u-radio>
					</u-radio-group>
						
				</u-form-item>
				<!-- 增设是否高校毕业生 -->
				<u-form-item :label-position="labelPosition" label="是否高校毕业生" prop="ifHiGraduate">
						
					<u-radio-group v-model="model.ifHiGraduate" :width="radioCheckWidth" :wrap="radioCheckWrap">
						<u-radio shape="circle" v-for="(item, index) in radioList" :key="index" :name="item.name">{{
								item.name
						}}</u-radio>
					</u-radio-group>
						
				</u-form-item>
				<!-- 增设是否自主创业人员 -->
				<u-form-item :label-position="labelPosition" label="是否自主创业人员 " prop="ifSetup">	
					<u-radio-group v-model="model.ifSetup" :width="radioCheckWidth" :wrap="radioCheckWrap">
						<u-radio shape="circle" v-for="(item, index) in radioList" :key="index" :name="item.name">{{
								item.name
						}}</u-radio>
					</u-radio-group>
						
				</u-form-item>
				<!-- 是否公务员或事业单位正式工作人员 -->
				<u-form-item :label-position="labelPosition" label="是否公务员或事业单位正式工作人员" prop="isGovernment">
						
					<u-radio-group v-model="model.isGovernment" :width="radioCheckWidth" :wrap="radioCheckWrap">
						<u-radio shape="circle" v-for="(item, index) in radioList" :key="index" :name="item.name">{{
								item.name
						}}</u-radio>
					</u-radio-group>
						
				</u-form-item>
				
				<!-- 户籍地 省市区村-->
				
				<u-form-item :label-position="labelPosition" label="户籍地">
					<u-input :border="border" type="select" :select-open="addrpickerShow" v-model="model.hujidizhi"
						placeholder="请选择户籍地" @click="addrpickerShow = true"></u-input>
				</u-form-item>
				<u-picker mode="region" v-model="addrpickerShow" @confirm="regionConfirm1" :area-code='defultArr'></u-picker>
		
				<u-form-item :label-position="labelPosition" label="户籍地-镇（乡、街道）" v-show="hujiShow1">
					<u-input :border="border" placeholder="请输入户籍地-镇（乡、街道）" v-model="model.hujiCountry" type="text">
					</u-input>
				</u-form-item>
				
				<!-- 户籍地镇，下拉菜单 -->
				<u-form-item :label-position="labelPosition" label="户籍地-镇（乡、街道）" label-width="150" v-show="hujiShow2">
					<u-input :border="border" type="select" :select-open="hujiCountryShow" v-model="model.hujiCountry"
						placeholder="请选择户籍地-镇（乡、街道）" @click="hujiCountryShow = true" ></u-input>
						
				</u-form-item>				
				<u-select mode="single-column" :list="hujiCountryList" v-model="hujiCountryShow"
					@confirm="FnConfirm('hujiCountry', $event)"></u-select>
					
				<u-form-item :label-position="labelPosition" label="户籍地-村（居、社区）" v-show="hujiShow1">
					<u-input :border="border" placeholder="请输入户籍地-村（居、社区）" v-model="model.hujiVillage" type="text">
					</u-input>
				</u-form-item>
				
				<!-- 户籍地村，下拉菜单 -->
				<u-form-item :label-position="labelPosition" label="户籍地-村（居、社区）" label-width="150" v-show="hujiShow2">
					<u-input :border="border" type="select" :select-open="hujiVillageShow" v-model="model.hujiVillage"
						placeholder="请选择户籍地-村（居、社区）" @click="hujiVillageShow = true" ></u-input>
				</u-form-item>
				<u-select mode="single-column" :list="hujiVillageList" v-model="hujiVillageShow"
					@confirm="FnConfirm('hujiVillage', $event)"></u-select>
				
				<!-- 增设户籍地小组或网格 -->
				<u-form-item :label-position="labelPosition" label="户籍地小组或网格">
					<u-input :border="border" placeholder="请输入户籍地小组或网格" v-model="model.hjGrid" type="text">
					</u-input>
				</u-form-item>
				
				<!-- 常住地-省市区村 -->
				<u-form-item :label-position="labelPosition" label="常住地">
					<u-input :border="border" type="select" :select-open="addrpickerShow1" v-model="model.changzhuAddr"
						placeholder="请选择常住地" @click="addrpickerShow1 = true"></u-input>
				</u-form-item>
				<u-picker mode="region" v-model="addrpickerShow1" @confirm="regionConfirm2" :area-code="defultArr"></u-picker>
		
				
				
				
				<u-form-item :label-position="labelPosition" label="常住地-镇（乡、街道）" label-width="150" v-show="liveShow2">
					<u-input :border="border" type="select" :select-open="liveCountryShow" v-model="model.liveCountry"
						placeholder="请选择常住地-镇（乡、街道）" @click="liveCountryShow = true" ></u-input>
						
				</u-form-item>				
				<u-select mode="single-column" :list="liveCountryList" v-model="liveCountryShow"
					@confirm="FnConfirm('liveCountry', $event)"></u-select>
					
				<!-- 常住地-镇 -->
				<u-form-item :label-position="labelPosition" label="常住地-镇（乡、街道）" v-show="liveShow1">
					<u-input :border="border" placeholder="请输入常住地-镇（乡、街道）" v-model="model.liveCountry" type="text">
					</u-input>
				</u-form-item>
				
				
				
				<u-form-item :label-position="labelPosition" label="常住地-村（居、社区）" label-width="150" v-show="liveShow2">
					<u-input :border="border" type="select" :select-open="liveVillageShow" v-model="model.liveVillage"
						placeholder="请选择常住地-村（居、社区）" @click="liveVillageShow = true" ></u-input>
				</u-form-item>
				<u-select mode="single-column" :list="liveVillageList" v-model="liveVillageShow"
					@confirm="FnConfirm('liveVillage', $event)"></u-select>
					
				<!-- 常住地-村 -->
				<u-form-item :label-position="labelPosition" label="常住地-村（居、社区）" v-show="liveShow1">
					<u-input :border="border" placeholder="请输入常住地-村（居、社区）" v-model="model.liveVillage" type="text">
					</u-input>
				</u-form-item>
					
				
				
				<!-- 常住地小组或网格 -->
				<u-form-item :label-position="labelPosition" label="常住地小组或网格">
					<u-input :border="border" placeholder="请输入常住地小组或网格" v-model="model.grid" type="text">
					</u-input>
				</u-form-item>
		
				<u-form-item :label-position="labelPosition" label="户口属性" label-width="150" prop="accountAttr">
					<u-input :border="border" type="select" :select-open="accountAttrShow" v-model="model.accountAttr"
						placeholder="请选择户口属性" @click="accountAttrShow = true"></u-input>
				</u-form-item>
				<u-select mode="single-column" :list="accountAttrList" v-model="accountAttrShow"
					@confirm="FnConfirm('accountAttr', $event)"></u-select>
		
				<u-form-item :label-position="labelPosition" label="是否劳动力 ">
					<u-radio-group v-model="model.isLabor" :width="radioCheckWidth" :wrap="radioCheckWrap">
						<u-radio shape="circle" v-for="(item, index) in radioList" :key="index" :name="item.name">{{
								item.name
						}}</u-radio>
					</u-radio-group>
				</u-form-item>
			</view>
		
			<!-- 返乡信息 -->
			<view v-show="current == 1">
				<!-- 增设是否返乡人员 -->
				<u-form-item :label-position="labelPosition" label="是否返乡人员 ">
					<u-radio-group v-model="model.ifGohome" :width="radioCheckWidth" :wrap="radioCheckWrap">
						<u-radio shape="circle" v-for="(item, index) in radioList" :key="index" :name="item.name">{{
								item.name
						}}</u-radio>
					</u-radio-group>
				</u-form-item>
				<!-- 增设返乡时间 -->
				<u-form-item :label-position="labelPosition" label="返乡时间" v-show="isShow6">
					<u-input :readonly="true" @click="graduationTimeshow2 = true" :border="border" placeholder="请选择返乡时间"
						v-model="model.gohomeTime" type="select"></u-input>
				</u-form-item>
				<!-- <u-calendar v-model="graduationTimeshow2" @change="changegraduationTimes2" mode="date" max-date='2050-01-01'></u-calendar> -->
				<u-picker v-model="graduationTimeshow2" @confirm="changegraduationTimes2" mode="time"></u-picker>
				<!-- 增设返乡来源地(国外、省外、市外省内、区外市内、区内乡外） -->
				
				<u-form-item :label-position="labelPosition" label="返乡来源地" label-width="150" v-show="isShow6">
					<u-input :border="border" type="select" :select-open="gohomeSrcShow" v-model="model.gohomeSrc"
						placeholder="请选择返乡来源地" @click="gohomeSrcShow = true"></u-input>
				</u-form-item>
				<u-select mode="single-column" :list="gohomeSrcList" v-model="gohomeSrcShow"
					@confirm="FnConfirm('gohomeSrc', $event)"></u-select>
									
					
				<!-- 增设请输入返乡前国家（输入框）未更新字段 -->
				<u-form-item :label-position="labelPosition" label="请输入返乡前国家" v-show='isShow10'>
					<u-input :border="border" placeholder="请输入请输入返乡前国家" v-model="model.inputGoHomeCountry" type="text">
					</u-input>
				</u-form-item>
				
					
				
				<!-- 增设返乡前工作地点 -->
				<u-form-item :label-position="labelPosition" label="返乡前工作地点-省市区" v-show="isShow11">
					<u-input :border="border" type="select" :select-open="addrpickerShow4" v-model="model.gohomeAdd"
						placeholder="请选择返乡前工作地点-省市区" @click="addrpickerShow4 = true"></u-input>
				</u-form-item>
				<u-picker mode="region" v-model="addrpickerShow4" @confirm="regionConfirm5" :area-code='defultArr'></u-picker>
				
				
				<!-- 增设 //返乡前工作地点-镇、乡、街道-->
				<u-form-item :label-position="labelPosition" label="请输入返乡前工作地点-镇、乡、街道" v-show='isShow29'>
					<u-input :border="border" placeholder="请输入请输入返乡前工作地点-镇、乡、街道" v-model="model.gohomeTownship" type="text">
					</u-input>
				</u-form-item>
				
				<!-- 增设返乡原因  -->
				<u-form-item :label-position="labelPosition" label="返乡原因" label-width="150" v-show="isShow6">
					<u-input :border="border" type="select" :select-open="gohomeReasonShow" v-model="model.gohomeReason"
						placeholder="请选择返乡原因" @click="gohomeReasonShow = true"></u-input>
				</u-form-item>
				<u-select mode="single-column" :list="gohomeReasonList" v-model="gohomeReasonShow"
					@confirm="FnConfirm('gohomeReason', $event)"></u-select>
				<!-- 增设 返乡后是否就业-->
				
				<u-form-item :label-position="labelPosition" label="返乡后是否就业" v-show="isShow6">
					<u-radio-group v-model="model.ifGohomeWork" :width="radioCheckWidth" :wrap="radioCheckWrap">
						<u-radio shape="circle" v-for="(item, index) in radioList" :key="index" :name="item.name">{{
								item.name
						}}</u-radio>
					</u-radio-group>
				</u-form-item>	
								
				
		
			</view>
			<!-- 就业信息 -->
			<view v-show="current == 2">
				<u-form-item :label-position="labelPosition" label="目前状态" label-width="150">
					<u-input :border="border" type="select" :select-open="currStateShow" v-model="model.currState"
						placeholder="请选择目前状态" @click="currStateIs"></u-input>
				</u-form-item>
				<u-select mode="single-column" :list="currStateList" v-model="currStateShow"
					@confirm="FnConfirm('currState', $event)"></u-select>
			<!-- 增设退出劳动力市场原因 -->
			
				<u-form-item :label-position="labelPosition" label="退出劳动力市场原因" label-width="150" v-show='isShow12'>
					<u-input :border="border" type="select" :select-open="exitReasonShow" v-model="model.exitReason"
						placeholder="请选择退出劳动力市场原因" @click="exitReasonShow = true"></u-input>
				</u-form-item>
				<u-select mode="single-column" :list="exitReasonList" v-model="exitReasonShow"
					@confirm="FnConfirm('exitReason', $event)"></u-select>
					
								
				<u-form-item :label-position="labelPosition" label="务农年收入" v-show="isShow3">
					<u-input :border="border" placeholder="请输入务农年收入" v-model="model.farmingIncome" type="number">
					</u-input>
				</u-form-item>
								
						
				<u-form-item :label-position="labelPosition" label="就业方式" label-width="150" v-show="isShow27">
					<u-input :border="border" type="select" :select-open="workModeShow" v-model="model.workMode"
						placeholder="请选择就业方式" @click="workModeShow = true"></u-input>
				</u-form-item>
				<u-select mode="single-column" :list="workModeList" v-model="workModeShow"
					@confirm="FnConfirm('workMode', $event)"></u-select>
					
				<!-- 补是否为组织劳务输出 -->
				<u-form-item :label-position="labelPosition" label="是否为组织劳务输出" v-show="isShow28">
					<u-radio-group v-model="model.isOrgLabor" :width="radioCheckWidth" :wrap="radioCheckWrap">
						<u-radio shape="circle" v-for="(item, index) in radioList" :key="index" :name="item.name">{{
								item.name
						}}</u-radio>
					</u-radio-group>
				</u-form-item>
				<!-- 补组织劳务输出类型 -->
				<u-form-item :label-position="labelPosition" label="组织劳务输出类型" label-width="150" v-show="isShow7">
					<u-input :border="border" type="select" :select-open="orgLaborTypeShow" v-model="model.orgLaborType"
						placeholder="请选择组织劳务输出类型" @click="orgLaborTypeShow = true"></u-input>
				</u-form-item>
				<u-select mode="single-column" :list="orgLaborTypeList" v-model="orgLaborTypeShow"
					@confirm="FnConfirm('orgLaborType', $event)"></u-select>
					
				<!-- 增设创业就业区域 -->
				<u-form-item :label-position="labelPosition" label="创业或就业区域" label-width="150" v-show="isShow27">
					<u-input :border="border" type="select" :select-open="setupAreaShow" v-model="model.setupArea"
						placeholder="请选择创业就业区域" @click="setupAreaShow = true"></u-input>
				</u-form-item>
				<u-select mode="single-column" :list="setupAreaList" v-model="setupAreaShow"
					@confirm="FnConfirm('setupArea', $event)"></u-select>
				
					
				<!-- 增设请输入就业国家 -->
				<u-form-item :label-position="labelPosition" label="请输入就业国家" v-show='isShow19'>
					<u-input :border="border" placeholder="请输入请输入就业国家" v-model="model.wetCountry" type="text">
					</u-input>
				</u-form-item>
					
					
				<u-form-item :label-position="labelPosition" label="就业地-省市区" v-show='isShow21'>
					<u-input :border="border" type="select" :select-open="addrpickerShow2" v-model="model.jiuyedizhi"
						placeholder="请选择就业地-省市区" @click="addrpickerShow2 = true"></u-input>
				</u-form-item>
				<u-picker mode="region" v-model="addrpickerShow2" @confirm="regionConfirm3" :area-code='defultArr'></u-picker>
				
				<!-- 增设就业详情地区   就业乡政街道-->
				<u-form-item :label-position="labelPosition" label="就业地-镇(乡,街道)" v-show='isShow26'> 
					<u-input :border="border" placeholder="请输入就业地-镇(乡,街道)"  type="text" v-model="model.workCountry"></u-input>
				</u-form-item>
				
				<!-- <u-form-item :label-position="labelPosition" label="就业地-镇(乡,街道)" label-width="150" v-show="workShow2">
					<u-input :border="border" type="select" :select-open="workCountryShow" v-model="model.workCountry"
						placeholder="请选择就业地-镇(乡,街道)" @click="workCountryShow = true" ></u-input>
				</u-form-item>				
				<u-select mode="single-column" :list="workCountryList" v-model="workCountryShow"
					@confirm="FnConfirm('workCountry', $event)"></u-select> -->
					
				
				
				<!-- 增设创业就业企业/单位名称 -->
				<u-form-item :label-position="labelPosition" label="创业或就业企业/单位名称" v-show="isShow27">
					<u-input :border="border" placeholder="请输入创业或就业企业/单位名称" v-model="model.createCompanyName" type="text">
					</u-input>
				</u-form-item>
				<!-- 增设创业或就业起始时间 -->
				<u-form-item :label-position="labelPosition" label="创业或就业起始时间" v-show="isShow27">
					<u-input :readonly="true" @click="graduationTimeshow1 = true" :border="border"
						placeholder="请选择创业或就业起始时间" v-model="model.workStartTime" type="select">
					</u-input>
				</u-form-item>
				<!-- <u-calendar v-model="graduationTimeshow1" @change="changegraduationTimes1" mode="date" max-date='2050-01-01'></u-calendar> -->
				<u-picker v-model="graduationTimeshow1" @confirm="changegraduationTimes1" mode="time"></u-picker>
				<!-- 增设创业带动就业人数 -->
				<u-form-item :label-position="labelPosition" label="创业带动就业人数" v-show="isShow20">
					<u-input :border="border" placeholder="请输入创业带动就业人数" v-model="model.obtainNum" type="number" ></u-input>
				</u-form-item>
				
				<u-form-item :label-position="labelPosition" label="行业类别" label-width="150" v-show="isShow27">
					<u-input :border="border" type="select" :select-open="industryClassifyShow"
						v-model="model.industryClassify" placeholder="请选择行业类别" @click="industryClassifyShow = true">
					</u-input>
				</u-form-item>
				<u-select mode="single-column" :list="industryClassifyList" v-model="industryClassifyShow"
					@confirm="FnConfirm('industryClassify', $event)"></u-select>
						
						
					
				<u-form-item :label-position="labelPosition" label="灵活就业方式" label-width="150" v-show='isShow24'>
					<u-input :border="border" type="select" :select-open="flexibleShow" v-model="model.flexible"
						placeholder="请选择灵活就业方式" @click="flexibleShow = true"></u-input>
				</u-form-item>
				<u-select mode="single-column" :list="flexibleList" v-model="flexibleShow"
					@confirm="FnConfirm('flexible', $event)"></u-select>
						
				<u-form-item :label-position="labelPosition" label="月均收入（不填年收入）" v-show="isShow28">
					<u-input :border="border" placeholder="请输入月均收入（不填年收入）" v-model="model.monthMoney" type="number">
					</u-input>
				</u-form-item>
				<u-form-item :label-position="labelPosition" label="年均收入（不填月工资）"v-show="isShow28">
					<u-input :border="border" placeholder="请输入年均收入（不填月工资）" v-model="model.yearMoney" type="number">
					</u-input>
				</u-form-item>			
				
					
			</view>
			<!-- 失业信息 -->
			<view v-show="current == 3 && isShowCurrState">
				
				<!-- 失业时间 -->
				<u-form-item :label-position="labelPosition" label="失业（未就业）时间">
					<u-input :readonly="true" @click="UnemploymentTimeShow = true" :border="border"
						placeholder="请选择失业（未就业）时间" v-model="model.unemploymentTime" type="select">
					</u-input>
				</u-form-item>
				<!-- <u-calendar v-model="UnemploymentTimeShow" @change="changegraduationTimes4" mode="date" max-date='2050-01-01'></u-calendar> -->
				<u-picker v-model="UnemploymentTimeShow" @confirm="changegraduationTimes4" mode="time"></u-picker>
				
				<u-form-item :label-position="labelPosition" label="失业（未就业）原因" label-width="150" >
				     <u-input :border="border" type="select" :select-open="unemployedReasonShow"
				      v-model="model.unemployedReason" placeholder="请选择失业（未就业）原因" @click="unemployedReasonShow = true">
				     </u-input>
				    </u-form-item>
				    <u-select mode="single-column" :list="unemployedReasonList" v-model="unemployedReasonShow"
				     @confirm="FnConfirm('unemployedReason', $event)"></u-select> 
					 
				<u-form-item :label-position="labelPosition" label="是否有就业意愿" >
					<u-radio-group v-model="model.isDesire" :width="radioCheckWidth" :wrap="radioCheckWrap">
						<u-radio shape="circle" v-for="(item, index) in radioList" :key="index" :name="item.name">{{
								item.name
						}}</u-radio>
					</u-radio-group>
				</u-form-item>
				
					 
				
				<u-form-item :label-position="labelPosition" label="再就业意愿" label-width="150" v-show='isShow25'>
				     <u-input :border="border" type="select" :select-open="willingnessShow"
				      v-model="model.willingness" placeholder="请选择再就业意愿" @click="willingnessShow = true">
				     </u-input>
				    </u-form-item>
				    <u-select mode="single-column" :list="willingnessList" v-model="willingnessShow"
				     @confirm="FnConfirm('willingness', $event)"></u-select> 
					 
				<!-- 增设拟计划外出务工时间 -->
				<u-form-item :label-position="labelPosition" label="拟计划外出务工时间" v-show='isShow18'>
					<u-input :readonly="true" @click="outTimeShow = true" :border="border" placeholder="请选择拟计划外出务工时间"
						v-model="model.outTime" type="select">
					</u-input>
				</u-form-item>
				<!-- <u-calendar v-model="outTimeShow" @change="changegraduationTimes6" mode="date" max-date='2050-01-01'></u-calendar> -->
				<u-picker v-model="outTimeShow" @confirm="changegraduationTimes6" mode="time"></u-picker>
				
				<!-- 增设就业意愿区域 -->
				<u-form-item :label-position="labelPosition" label="就业意愿区域" label-width="150" v-show='isShow18'>
					<u-input :border="border" type="select" :select-open="desireAreaShow" v-model="model.desireArea"
						placeholder="请选择就业意愿区域" @click="desireAreaShow = true"></u-input>
				</u-form-item>
				<u-select mode="single-column" :list="desireAreaList" v-model="desireAreaShow"
					@confirm="FnConfirm('desireArea', $event)"></u-select>
					
				<!-- 增设请输入就业意愿国家 -->
				<u-form-item :label-position="labelPosition" label="请输入就业意愿国家" v-show='isShow17'>
					<u-input readonly :border="border" placeholder="请输入就业意愿国家" v-model="model.workWillingCountry" type="text" >
						
					</u-input>
				</u-form-item>
				
				<!-- 增设拟外出就业地址 -->
				
				<u-form-item :label-position="labelPosition" label="拟外出就业地址" v-show='isShow23'>
					<u-input :border="border" type="select" :select-open="addrpickerShow5" v-model="model.outAddress"
						placeholder="请选择拟外出就业地址" @click="addrpickerShow5 = true"></u-input>
				</u-form-item>
				<u-picker mode="region" v-model="addrpickerShow5" @confirm="regionConfirm6" :area-code='defultArr'></u-picker>
				
				<!-- 增设拟就业方式 -->
				<u-form-item :label-position="labelPosition" label="拟就业方式" label-width="150" v-show='isShow18'>
					<u-input :border="border" type="select" :select-open="obtainTypeShow" v-model="model.obtainType"
						placeholder="请选择拟就业方式" @click="obtainTypeShow = true"></u-input>
				</u-form-item>
				<u-select mode="single-column" :list="obtainTypeList" v-model="obtainTypeShow"
					@confirm="FnConfirm('obtainType', $event)"></u-select>
				
				
				 <u-form-item :label-position="labelPosition" label="拟从事工种" label-width="150" v-show='isShow18'>
					<u-input :border="border" type="select" :select-open="proposedJobTypeShow" v-model="model.proposedJobType"
						placeholder="请选择拟从事工种" @click="proposedJobTypeShow = true"></u-input>
				</u-form-item>
				<u-select mode="single-column" :list="industryClassifyList" v-model="proposedJobTypeShow"
					@confirm="FnConfirm('proposedJobType', $event)"></u-select>
					
				<u-form-item :label-position="labelPosition" label="求职意向类型" label-width="150" v-show='isShow18'>
					<u-input :border="border" type="select" :select-open="yxTypeShow" v-model="model.yxType"
						placeholder="请选择求职意向类型" @click="yxTypeShow = true">
					</u-input>
				</u-form-item>
				<u-select mode="single-column" :list="yxTypeList" v-model="yxTypeShow"
					@confirm="FnConfirm('yxType', $event)"></u-select>
				
				
				
				
				
				<u-form-item :label-position="labelPosition" label="期望月工资" label-width="150" v-show='isShow18'>
					<u-input :border="border" type="select" :select-open="expectMonthMoneyShow" v-model="model.expectMonthMoney"
						placeholder="请选择期望月工资" @click="expectMonthMoneyShow = true">
					</u-input>
				</u-form-item>
				<u-select mode="single-column" :list="expectMonthMoneyList" v-model="expectMonthMoneyShow"
					@confirm="FnConfirm('expectMonthMoney', $event)"></u-select>				
		
			</view>
			
			<!-- 就业服务-->
			<view v-show="current == 4">
				<u-form-item :label-position="labelPosition" label="是否有培训意愿">
					<u-radio-group v-model="model.train" :width="radioCheckWidth" :wrap="radioCheckWrap">
						<u-radio shape="circle" v-for="(item, index) in radioList" :key="index" :name="item.name">{{
								item.name
						}}</u-radio>
					</u-radio-group>
				</u-form-item>
				
				
					
					<u-form-item :label-position="labelPosition" label="请输入意向培训工种" v-show="isShow8">
						<u-input readonly :border="border" placeholder="请输入意向培训工种" v-model="model.yxWorkType" type="text" >
						</u-input>
					</u-form-item>
				<!-- 增设是否开展就业服务 -->
				
				<u-form-item :label-position="labelPosition" label="是否开展就业服务">
					<u-radio-group v-model="model.isOpenWork" :width="radioCheckWidth" :wrap="radioCheckWrap">
						<u-radio shape="circle" v-for="(item, index) in radioList" :key="index" :name="item.name">{{
								item.name
						}}</u-radio>
					</u-radio-group>
				</u-form-item>
				
				<u-form-item :label-position="labelPosition" label="开展就业服务措施" label-width="150" v-show="isShow9">
					<u-input :border="border" type="select" :select-open="measuresShow" v-model="model.measures"
						placeholder="请选择开展就业服务措施" @click="measuresShow = true">
					</u-input>
				</u-form-item>
				<u-select mode="single-column" :list="measuresList" v-model="measuresShow"
					@confirm="FnConfirm('measures', $event)"></u-select>
					
				
				<!-- 增设是否是开展就业服务后就业-->
				<u-form-item :label-position="labelPosition" label="是否是开展就业服务后就业">
					<u-radio-group v-model="model.ifServiceWork" :width="radioCheckWidth" :wrap="radioCheckWrap">
						<u-radio shape="circle" v-for="(item, index) in radioList" :key="index" :name="item.name">{{
								item.name
						}}</u-radio>
					</u-radio-group>
				</u-form-item>
				<!-- 增设是否享受创业担保贷款政策 -->
				<u-form-item :label-position="labelPosition" label="是否享受创业担保贷款政策">
					<u-radio-group v-model="model.ifLoan" :width="radioCheckWidth" :wrap="radioCheckWrap">
						<u-radio shape="circle" v-for="(item, index) in radioList" :key="index" :name="item.name">{{
								item.name
						}}</u-radio>
					</u-radio-group>
				</u-form-item>
				
				
				<u-form-item :label-position="labelPosition" label="享受创业担保贷款（万元）" v-show='isShow13'>
					<u-input :border="border" placeholder="请输入享受创业担保贷款（万元）" v-model="model.assureMoney" type="number" >
					</u-input>
				</u-form-item>
				
				<!-- 增设是否申请创业担保贷款（万元） -->
				<u-form-item :label-position="labelPosition" label="是否申请创业担保贷款（万元）" v-show='isShow14'>
					<u-radio-group v-model="model.isApplyMoney" :width="radioCheckWidth" :wrap="radioCheckWrap">
						<u-radio shape="circle" v-for="(item, index) in radioList" :key="index" :name="item.name">{{
								item.name
						}}</u-radio>
					</u-radio-group>
				</u-form-item>
				
				<u-form-item :label-position="labelPosition" label="拟申请创业担保贷款（万元）" v-show='isShow15'>
					<u-input :border="border" placeholder="请输入拟申请创业担保贷款（万元）" v-model="model.applyMoney" type="number" >
					</u-input>
				</u-form-item>
				<!-- 增设求职创业补贴（元） -->
				<u-form-item :label-position="labelPosition" label="求职创业补贴（元）">
					<u-input :border="border" placeholder="求职创业补贴（元）" v-model="model.workSubsidies" type="number" >
					</u-input>
				</u-form-item>
				<!-- 增设交通补贴（元） -->
				<u-form-item :label-position="labelPosition" label="交通补贴（元）">
					<u-input :border="border" placeholder="交通补贴（元）" v-model="model.trafficSubsidies" type="number" >
					</u-input>
				</u-form-item>
				
				<!-- 增设经营场所租赁补贴（元） -->
				<u-form-item :label-position="labelPosition" label="经营场所租赁补贴（元）">
					<u-input :border="border" placeholder="经营场所租赁补贴（元）" v-model="model.hireSubsidies" type="number" >
					</u-input>
				</u-form-item>
				<!-- 增设 自主创业补贴（元）-->
				<u-form-item :label-position="labelPosition" label="自主创业补贴（元）">
					<u-input :border="border" placeholder="自主创业补贴（元）" v-model="model.ownSubsidies" type="number" >
					</u-input>
				</u-form-item>
				<!-- 增设 是否享受灵活就业社会保险补贴-->
				<u-form-item :label-position="labelPosition" label="是否享受灵活就业社会保险补贴">
					<u-radio-group v-model="model.flexibleSubsidies" :width="radioCheckWidth" :wrap="radioCheckWrap">
						<u-radio shape="circle" v-for="(item, index) in radioList" :key="index" :name="item.name">{{
								item.name
						}}</u-radio>
					</u-radio-group>
				</u-form-item>
					
					
					
				
				
				<u-form-item :label-position="labelPosition" label="备注">
					<u-input :border="border" placeholder="请输入备注" v-model="model.remark" type="text"></u-input>
				</u-form-item>
			</view>
			
		    <view class="currView" v-show="current == 3 && isShowCurrState1">目前状态为“已就业”或“退出劳动力市场”，不用填写失业信息！</view>
		</u-form>

			<view v-show="yesInfo">
				<view class="btns">
					<u-button class="sub" type="primary" @click="submit">{{ yesInfo1 ? '确认修改' : "保存" }}</u-button>
				</view>
			</view>
			
			<view class="empty" v-show="noInfo">
				<u-empty text="暂时没有搜索到该用户" mode="search"></u-empty>
				<view class="sunbtn" @click="addUser">
					<text class="plus" >+</text> 新增登记
				</view>
			</view>
		
		
	</view>
</template>

<script>
import api from "../../api/routes.js";
export default {
	data() {
		
		let that = this;
		return {
			defultArr:[52,5201,520102],
		
			value:'',
			show: false,
			noInfo:false,  //控制新增按钮
			yesInfo:false, //控制表单
			yesInfo1:false, //控制修改或保存
			addrpickerShow: false,
			addrpickerShow1: false,
			addrpickerShow2: false,
			addrpickerShow3: false,
			addrpickerShow4: false, //返乡前工作地点
			addrpickerShow5: false, //拟外出就业地址
			value1:1067246875800000066,
			keyword: '',
			liveShow1: true,
			liveShow2: false,
			hujiShow1: true,
			hujiShow2: false,
			workShow2: false,
			
			
			
			TabList: [
				{
				cate_name: '基本信息'
				}, {
					cate_name: '返乡信息'
				}, {
					cate_name: '就业信息',
				},
				{
					cate_name: '失业信息',
				}, 
				{
					cate_name: '就业服务',
				}, 
			],
			
			current: 0,
			model: {
				//======= 基本信息  begin=====
				headName: '', // 户主姓名
				headIdCard:'',//户主身份证号码
				laborName: '', // 劳动者姓名
				headRelation: '', // 与户主关系
				idCard: '', // 身份证号 110101199003070134
				age: '', // 年龄
				sex: '', // 性别
				ethnicity: '', // 族别
				education: '', // 文化程度
				graduationTime: null, // 毕业时间（大专、高职及以上毕业生）
				
				skills: '', // 技能特长
				povertyAttr: '', // 贫困属性
				isMove: '', // 是否易扶搬迁户	
				
				isSoldier: '', // 是否退役军人	
				isRecovery: '', // 是否戒毒康复人员	
				isBurstDiff: '', // 是否突发困难人员	
				burstReason: '', // 突发原因	
				isPrison: '', // 是否刑满释放人员	
				isLoseWork: '', // 是否城镇登记失业人员	
				isJobDiff: '', // 是否就业困难人员	
				
				isDisabled: '', // 是否残疾人劳动力
				
				isOrgLabor: '', // 是否为组织劳务输出	
				orgLaborType: '', // 组织劳务输出类型	
				hujidizhi: '', //自己定义的为了界面展示
				hujiProvince: '', // 户籍地	
				hujiCity: '', //户籍地-市
				hujiArea: '', //户籍地-区（县、市）
				hujiCountry: '', //户籍地-镇（乡、街道）
				hujiVillage: '', //户籍地-村（居、社区）
				


				changzhuAddr: '', // 常住地	
				liveProvince: '', //常住地-省（直辖市、自治区）
				liveCity: '', //常住地-市
				liveArea: '', //常住地-区（县、市）
				liveCountry: '', //常住地-村（居、社区）
				liveVillage: '', //常住地-省（直辖市、自治区）
				tell: '', // 联系电话	
				accountAttr: '', // 户口属性	
				isGovernment: '', // 是否公务员或事业单位正式工作人员
				
				university:'', //毕业院校（大专及以上学历填写）
				major:'', //专业（大专及以上学历填写）
				sitename:'', //易扶搬迁户所在安置点名称
				difficultType:'', //就业困难人员类型
				disabilityType:'', //残疾类别等级
				ifDifficult:'', //是否特困户
				ifHiGraduate:'', //是否高校毕业生
				ifSetup:'', //是否自主创业人员
				hjGrid:'', //户籍地-小组或网格
				isLabor:'',//是否劳动力
				//======= 基本信息  end=====
				//======= 返乡信息  begin=====
				ifGohome:'', //是否返乡人员
				gohomeSrc:'', //返乡来源地(国外、省外、市外省内、区外市内、区内乡外）
				gohomeCountry:'', //返乡前工作地点-国家
				gohomeFrontProvince:'', //返乡前工作地点-省
				gohomeFrontCity:'', //返乡前工作地点-市
				gohomeFrontArea:'', //返乡前工作地点-县、区
				gohomeTownship:'',//返乡前工作地点-镇、乡、街道
				gohomeReason:'', //返乡原因 
				ifGohomeWork:'', //返乡后是否就业
				inputGoHomeCountry:'', //请输入返乡前国家
		
				gohomeAdd:'', //返乡前地址
				
				//======= 返乡信息  end=====
				//======= 就业信息  begin=====
				currState: "", // 目前状态
				farmingIncome: '', // 务农年收入
				exitReason:'', //退出劳动力市场原因（下拉）
				jiuyedizhi: '',
				workMode: '', // 就业方式
				workCompany: '', // 就业单位名称	
				workProvince: '', // 省（直辖市、自治区）
				workCity: '', // 市	县（区、市）
				workArea: '', // 镇（乡、街道）
				workCountry:'',
				workType: "", // 工种

				workStartTime: null, // 创业或就业起始时间
				industryClassify: '', // 行业类别
				flexible: '', // 灵活就业方式
				monthMoney: "", // 月均收入（不填年收入）
				yearMoney: '', // 年均收入（不填月工资）
				gohomeTime: null, // 返乡时间
				
				setupArea:'', //创业就业区域
				setupCountry:'', //国家
				isFarming:'', //是否务农
				//======= 就业信息  end=====


				//======= 就业意愿  begin=====

				unemployedReason: "", // 未就业原因
				isDesire: '', // 是否有就业意愿
				desireMode: "", // 就业意向方式

				yixiangdizhi: '',
				yxProvince: '', // 意向-省（直辖市、自治区）
				yxCity: '', // 	意向-市
				yxArea: '', //意向-县（区、市）
				yxCompany: '', // 企业名称	
				yxWorkType: '', //意向工种
				yxIndustry: "", // 求职意向行业
				yxType: "", // 求职意向类型	
				expectMonthMoney: '', // 期望月工资	
				train: '', // 培训意愿

				//======= 就业意愿  end=====
				//======= 就业服务  begin=====

				createCompanyName: "", // 创办企业名称
				createCompanyTime: null, // 创业时间
				companyBusiness: "", // 企业从事经营
				obtainNum: '', // 创业带动就业人数	
				assureMoney: "", // 享受创业担保贷款（万元）
				applyMoney: "", // 拟申请创业担保贷款（万元）
				
				isOpenWork:'', //是否开展就业服务
				ifServiceWork:'', //是否是开展就业服务后就业
				ifLoan:'', //是否享受创业担保贷款政策
				workSubsidies:'', //享受求职创业补贴或交通补贴情况-求职创业补贴（元）
				trafficSubsidies:'', //享受求职创业补贴或交通补贴情况-交通补贴（元）
				hireSubsidies:'', //享受经营场所租赁补贴和自主创业补贴情况-经营场所租赁补贴（元）
				ownSubsidies:'', //享受经营场所租赁补贴和自主创业补贴情况-自主创业补贴（元）
				flexibleSubsidies:'', //是否享受灵活就业社会保险补贴
				wetCountry:'', //请输入就业国家

				//======= 就业服务  end=====


				//======= 创业意愿  begin=====
				companyBusiness2: "", // 从事经营	
				isTrain: "", // 是否需要参加培训	
				applyMoneyOk: "", // 申请创业担保贷款（万元）
				remark: "", // 备注
				//======= 创业意愿  end=====
				
				//======= 失业信息  begin=====
				
				politicalOutlook:'' ,//政治面貌
				dibao:'', //低保家庭
				grid:'', //常住-小组或网格
				provideServices:'', //是否是开展就业服务后就业
				welfare:'', //是否公益性岗位或乡村公益性岗位
				unemploymentReasons:'', //失业原因
				willingness:'', //再就业意愿
				unemploymentTime:null, //失业时间
				planOutTime:null, // 计划外出时间
				proposedJobType:'', //拟从事工种
				measures:'', //开展就业服务措施
				
				desireArea:'', //就业意愿区域
				outTime:null, //拟计划外出务工时间
				outProvince:'', //拟外出就业地址-省（直辖市、自治区）
				outCity:'', //拟外出就业地址-市
				outArea:'', //拟外出就业地址-县（区、市）
				desireType:'', //求职意向类型(用工形式）
				obtainType:'', //拟就业方式
				outAddress:'', //拟外出就业地址
				exitReason:'', //退出劳动力市场原因（下拉）
				//======= 失业信息  end=====
				
			},
			selectList: [{
				value: '电子产品',
				label: '电子产品'
				},
				{
					value: '服装',
					label: '服装'
				},
				{
					value: '工艺品',
					label: '工艺品'
				}
			],
			rules: {
				headName: [{
					required: true,
					message: '请输入户主姓名',
					trigger: 'blur',
				},],
				headIdCard:[{
					required: true,
					message: '请输入户主身份证号',
					trigger: 'blur',
				},],
				laborName: [{
					required: true,
					message: '请输入劳动者姓名',
					trigger: 'blur',
				}],
				headRelation: [{
					required: true,
					message: '请选择与户主关系',
					trigger: 'change',
				}],
				idCard: [{
					required: true,
					message: '请输入劳动者身份证号',
					trigger: 'blur',
				},
				
				{
					validator: (rule, value, callback) => {
						if(value.length==20){
							value = value.substring(0,18)
						}
						// 调用uView自带的js验证规则，详见：https://www.uviewui.com/js/test.html
						// console.log(this.$u.test.idCard(value),'&&&&&&&&&');
						if (this.$u.test.idCard(value)) {
							// 拿到性别和年龄
							// console.log(this.getIdCardInfo(value, 1), '生日'); //生日
							// console.log(this.getIdCardInfo(value, 2), '性别'); //性别
							// console.log(this.getIdCardInfo(value, 3), '年龄'); //年龄
							this.model.age = this.getIdCardInfo(value, 3)
							this.model.sex = this.getIdCardInfo(value, 2)
						}
						return this.$u.test.idCard(value);
					},
					message: '身份证号不正确',
					// 触发器可以同时用blur和change，二者之间用英文逗号隔开
					trigger: ['change', 'blur'],
				}
				],
				
				tell: [{
					required: true,
					message: '请输入手机号',
					trigger: ['change', 'blur'],
				},
				{
					validator: (rule, value, callback) => {
						// 调用uView自带的js验证规则，详见：https://www.uviewui.com/js/test.html
						return this.$u.test.mobile(value);
					},
					message: '手机号码不正确',
					// 触发器可以同时用blur和change，二者之间用英文逗号隔开
					trigger: ['change', 'blur'],
				}
				],
				sex: [{
					required: true,
					message: '请选择性别',
					trigger: 'change'
				},],
				ethnicity: [{
					required: true,
					message: '请选择族别',
					trigger: ['change', 'blur'],
				}],
				politicalOutlook: [{
					required: true,
					message: '请选择政治面貌',
					trigger: ['change', 'blur'],
				}],
				education: [{
					required: true,
					message: '请选择文化程度',
					trigger: ['change', 'blur'],
				}],
				
				skills: [{
					required: true,
					message: '请选择技能特长',
					trigger: ['change', 'blur'],
				}],
				
				povertyAttr: [{
					required: true,
					message: '请选择人员类别',
					trigger: ['change', 'blur'],
				}],
				
				isMove: [{
					required: true,
					message: '请选择是否易扶搬迁户',
					trigger: ['change', 'blur'],
				}],
				
				dibao: [{
					required: true,
					message: '请选择是否低保户',
					trigger: ['change', 'blur'],
				}],
				
				isSoldier: [{
					required: true,
					message: '请选择是否退役军人',
					trigger: ['change', 'blur'],
				}],
				
				isRecovery: [{
					required: true,
					message: '请选择是否戒毒康复人员',
					trigger: ['change', 'blur'],
				}],
				
				isBurstDiff: [{
					required: true,
					message: '请选择是否突发困难人员',
					trigger: ['change', 'blur'],
				}],
				
				isPrison: [{
					required: true,
					message: '请选择是否刑满释放人员',
					trigger: ['change', 'blur'],
				}],
				
				isLoseWork: [{
					required: true,
					message: '请选择是否城镇登记失业人员',
					trigger: ['change', 'blur'],
				}],
				
				isJobDiff: [{
					required: true,
					message: '请选择是否就业困难人员',
					trigger: ['change', 'blur'],
				}],
				
				isDisabled: [{
					required: true,
					message: '请选择是否残疾人劳动力',
					trigger: ['change', 'blur'],
				}],
				
				ifDifficult: [{
					required: true,
					message: '请选择是否特困户',
					trigger: ['change', 'blur'],
				}],
				
				ifHiGraduate: [{
					required: true,
					message: '请选择是否高校毕业生',
					trigger: ['change', 'blur'],
				}],
				
				ifSetup: [{
					required: true,
					message: '请选择是否自主创业人员',
					trigger: ['change', 'blur'],
				}],
				
				isGovernment: [{
					required: true,
					message: '请选择是否公务员或事业单位正式工作人员',
					trigger: ['change', 'blur'],
				}],
				accountAttr: [{
					required: true,
					message: '请选择户口属性',
					trigger: ['change', 'blur'],
				}],
				
	
				intro: [{
					required: true,
					message: '请填写简介'
				},
				{
					min: 5,
					message: '简介不能少于5个字',
					trigger: 'change',
				},
				// 正则校验示例，此处用正则校验是否中文，此处仅为示例，因为uView有this.$u.test.chinese可以判断是否中文
				{
					pattern: /^[\u4e00-\u9fa5]+$/gi,
					message: '简介只能为中文',
					trigger: 'change',
				},
				],
				likeFruit: [{
					required: true,
					message: '请选择您喜欢的水果',
					trigger: 'change',
					type: 'array',
				}],
				payType: [{
					required: true,
					message: '请选择任意一种支付方式',
					trigger: 'change',
				}],
				region: [{
					required: true,
					message: '请选择地区',
					trigger: 'change',
				}],
				goodsType: [{
					required: true,
					message: '请选择商品类型',
					trigger: 'change',
				}],

				code: [{
					required: true,
					message: '请输入验证码',
					trigger: ['change', 'blur'],
				},
				{
					type: 'number',
					message: '验证码只能为数字',
					trigger: ['change', 'blur'],
				}
				],
				password: [{
					required: true,
					message: '请输入密码',
					trigger: ['change', 'blur'],
				},
				{
					// 正则不能含有两边的引号
					pattern: /^(?![0-9]+$)(?![a-zA-Z]+$)[0-9A-Za-z]+\S{5,12}$/,
					message: '需同时含有字母和数字，长度在6-12之间',
					trigger: ['change', 'blur'],
				}
				],
				rePassword: [{
					required: true,
					message: '请重新输入密码',
					trigger: ['change', 'blur'],
				},
				{
					validator: (rule, value, callback) => {
						return value === this.model.password;
					},
					message: '两次输入的密码不相等',
					trigger: ['change', 'blur'],
				}
				],
			},
			
			border: false,
			// check: false,
			selectStatus: 'close',

			radioList: [{
				name: '是',
				checked: true,
				disabled: false
				},
				{
					name: '否',
					checked: false,
					disabled: false
				}
				],
				actionSheetList: [{
					text: '男'
				},
				{
					text: '女'
				},
				{
					text: '保密',
					
				}
			],
			headRelationShow: false,
			skillsShow: false,
			educationShow:false,
			povertyAttrShow: false,
			sitenameShow:false, //易扶搬迁户所在安置点名称
			accountAttrShow: false,
			currStateShow: false,
			workModeShow: false,
			workTypeShow: false,  //意向工种
			proposedJobTypeShow:false,  //拟从事行业或工种
			obtainTypeShow:false,//拟就业方式
			desireAreaShow:false, //就业意愿区域
			industryClassifyShow: false,
			flexibleShow: false,
			unemployedReasonShow: false, //未就业原因
			willingnessShow:false, //再就业意愿
			yxTypeShow: false,
			measuresShow:false, //开展就业服务措施
			graduationTimeshow: false,
			graduationTimeshow1: false,
			graduationTimeshow2: false,
			graduationTimeshow3: false,
			UnemploymentTimeShow:false, //失业时间
			egressTimesShow:false, //计划外出时间
			outTimeShow:false , //拟计划外出务工时间
			actionSheetShow: false,
			pickerShow: false,
			selectShow: false,
			radioCheckWidth: 'auto',
			radioCheckWrap: false,
			PoliticaShow:false, //政治面貌
			ethnicityShow:false, //民族
			orgLaborTypeShow:false, //组织劳务输出类型
			difficultTypeShow:false, //就业困难人员类型
			gohomeSrcShow:false, //返乡来源地
			gohomeReasonShow:false, //返乡原因
			setupAreaShow:false,//创业就业区域
			setupCountryShow:false, //国家
			gohomeCountryShow:false, //返乡前工作地点-国家
			exitReasonShow:false, //退出劳动力市场
			expectMonthMoneyShow:false, //期望月工资
			liveCountryShow:false, //常住地-镇
			liveVillageShow:false, //常住地-村
			hujiCountryShow:false,//户籍地-镇
			hujiVillageShow:false,//户籍地-村
			workCountryShow:false,//就业地-镇
			
			labelPosition: 'top',
			codeTips: '',
			errorType: ['message', 'toast'],
			flexibleList: [], // 灵活就业方式
			workTypeList: [], // 工种
			industryClassifyList: [], // 行业类别
			povertyAttrList: [], // 人员类别
			skillsList: [], // 技能特长
			willingnessList:[], //再就业意愿
			// proposedJobTypeList:[], //拟从事工种
			yxWorkTypeList:[], //意向工种
			educationList:[], //文化程度
			headRelationList: [], // 与户主之间的关系
			accountAttrList: [],//户口属性
			currStateList: [], //目前状态
			
			workModeList: [], //就业方式
			yxTypeList: [], //求职意向类型
			politicalOutlookList:[],  //政治面貌
			unemployedReasonList:[],  // 失业（未就业）原因
			measuresList:[], //开展就业服务措施
			ethnicityList:[], // 民族分类
			orgLaborTypeList:[],  //组织劳务输出类型
			sitenameList:[], //易扶搬迁户所在安置点名称
			difficultTypeList:[], //就业困难人员类型
			gohomeSrcList:[], //返乡来源地
            gohomeReasonList:[] ,//返乡原因
			setupAreaList:[], //创业就业区域
			setupCountryList:[], //国家
			desireAreaList:[], //就业意愿区域
			obtainTypeList:[], //拟就业方式
			gohomeCountryList:[], //返乡前工作地点-国家
			exitReasonList:[], //退出劳动力市场
			expectMonthMoneyList:[], //期望月工资
			liveCountryList:[], //常住地-镇
			liveVillageList:[], //常住地-村
			hujiCountryList:[],//户籍地-镇
			hujiVillageList:[],//户籍地-村
			workCountryList:[],//就业区域
			
		};
	},
	onLoad(e) {
		console.log(e.idCard,'idCode');
		this.keyword=e.idCard;
		console.log(e.isNew,'e.isNew');
		if(e.isNew==1){
			this.search(e.idCard);
		}
		
		this.getdictionary('headRelation')// 与户主关系	
		this.getdictionary('skills')// 技能特长	
		this.getdictionary('povertyAttr')// 贫困属性		
		this.getdictionary('industryClassify')// 行业类别
		this.getdictionary('workType')// 工种
		this.getdictionary('flexible')// 灵活就业方式
		this.getdictionary('education') //文化程度
		this.getdictionary('accountAttr') //户口属性
		this.getdictionary('yxType') //求职意向类型
		this.getdictionary('currState') //目前状态
		this.getdictionary('workMode') //就业方式
		this.getdictionary('willingness') //再就业意愿
		this.getdictionary('politicalOutlook') //政治面貌
		this.getdictionary('unemployedReason') //失业（未就业）原因
		this.getdictionary('measures') //开展就业服务措施
		this.getdictionary('ethnicity') //族别
		this.getdictionary('orgLaborType') //组织劳务输出类型
		this.getdictionary('proposedJobType') //从事工种
		this.getdictionary('sitename') //易扶搬迁户所在安置点名称
		this.getdictionary('difficultType') //就业困难人员类型
		this.getdictionary('gohomeSrc') //返乡来源地
		this.getdictionary('gohomeReason') //返乡原因
		this.getdictionary('setupArea') //创业就业区域
		this.getdictionary('setupCountry') //国家
		this.getdictionary('desireArea') //就业意愿区域
		this.getdictionary('obtainType') //拟就业方式
		this.getdictionary('gohomeCountry') //返乡前工作地点-国家
		this.getdictionary('exitReason') //退出劳动力市场原因
		this.getdictionary('expectMonthMoney') ////期望月工资	
		this.liveCountry1()
		this.liveVillage1()
		this.hujiVillage1()
		
		
		
		
	},
	computed: {
		borderCurrent() {
			return this.border ? 0 : 1;
		},
		isShowCurrState(){
			if(this.model.currState=="未就业" || this.model.currState=="务农"){
				
				return true;
			}else if( this.model.currState=="已就业" || this.model.currState=="退出劳动力市场"){
				
				return false;
			}
		},
		isShowCurrState1(){
			if(this.model.currState=="未就业" || this.model.currState=="务农"){
				return false;
			}else if(this.model.currState=="已就业" || this.model.currState=="退出劳动力市场" ){
				
				return true;
			}
		},
		
		isShow(){  //是否突发困难户
			if(this.model.isBurstDiff==="是"){
				return true;
			}else{
				this.model.burstReason='';
				return false;
				
			}
		},
		isShow1(){ //是否就业困难人员
			if(this.model.isJobDiff==="是"){
				return true;
			}else{
				this.model.difficultType='';
				return false;
			}
		},
		isShow2(){
			if(this.model.education=="博士研究生" || this.model.education=="硕士研究生" || this.model.education=="大学本科" || this.model.education=="大学专科"){
				return true;
								
				
			}else{
				this.model.graduationTime=null;
				this.model.university='';
				this.model.major='';
				return false;
			}
		},
			
		isShow3(){
			if(this.model.currState==="务农" || this.model.isFarming==='是'){
				return true;
			}else{
				this.model.farmingIncome='';
				return false;
			}
			
		}, 
		isShow4(){ //是否是否易扶搬迁户
			if(this.model.isMove==="是"){
				return true;
			}else{
				this.model.sitename='';
				return false;
			}
		},
		isShow5(){ //是否残疾人劳动力
			if(this.model.isDisabled==="是"){
				return true;
			}else{
				this.model.disabilityType='';
				return false;
			}
		},
		isShow6(){ //是否返乡人员
			if(this.model.ifGohome==="是"){
				return true;
			}else{
				this.model.gohomeTime=null;
				this.model.gohomeSrc='';
				this.model.gohomeReason='';
				this.model.ifGohomeWork='';
				return false;
			}
		},
		isShow7(){ //是否为组织劳务输出
			if(this.model.currState==="未就业" || this.model.currState==="务农" || this.model.currState==="退出劳动力市场" || this.model.isOrgLabor==="否"){
				this.model.orgLaborType='';
				return false;
			}else if(this.model.isOrgLabor==="是"){
				return true;
			}
		},
		isShow8(){ //是否有培训意愿
			if(this.model.train==="是"){
				return true;
			}else{
				this.model.yxWorkType='';
				return false;
			}
		},
		isShow9(){ //是否开展就业服务
			if(this.model.isOpenWork==="是"){
				return true;
			}else{
				this.model.measures='';
				return false;
			}
		},
		isShow10(){
			if(this.model.ifGohome==="是"){
				if(this.model.gohomeSrc==="国外" || this.model.gohomeCountry==='外国'){
					return true;
				}else{
					return false;
				}
				return true;
			}else{
				this.model.inputGoHomeCountry='';
				return false;
			}
			
		},
		
		isShow11(){
			
			if(this.model.ifGohome==="是"){
				
				if(this.model.gohomeSrc==="省外" || this.model.gohomeSrc==="市外省内" || this.model.gohomeSrc==="区外市内" || this.model.gohomeSrc==="区内乡外"){
					return true;
				}else{
					return false;
				}
				return true;
			}else{
				this.model.gohomeAdd='';
				return false;
			}
		},
		isShow12(){
			if(this.model.currState==="退出劳动力市场"){
				
				return true;
			}else{
				this.model.exitReason='';
				return false;
			}
		},
		isShow13(){
			if(this.model.ifLoan==="是"){
				return true;
			}else{
				this.model.assureMoney='';
				return false;
			}
		},
		isShow14(){
			if(this.model.ifLoan==="否"){
				return true;
			}else{
				this.model.isApplyMoney='';
				return false;
			}
		},
		isShow15(){
			if(this.model.ifLoan=="是" || this.model.isApplyMoney=="否" ){
				this.model.applyMoney='';
				return false;
			}else if(this.model.isApplyMoney==="是"){
				return true;
			}
		},
		
		isShow16(){
			if(this.model.isDesire==="是"){
				return true;
			}else{
				return false;
			}
		},
		
		isShow17(){

			if(this.model.isDesire==="否" || this.model.desireArea=='' || this.model.willingness==="暂不找工作（照顾家人、自己身体不好、处理家务事、准备考试）" || this.model.willingness==="暂无就业意愿" || this.model.willingness==="考研" || this.model.desireArea =="省外" || this.model.desireArea =="省内区外" || this.model.desireArea =="区内乡外" || this.model.desireArea =="乡内"){
				this.model.workWillingCountry='';
				return false;
			}else if(this.model.desireArea =="国外"){
				return true;
			}
		},
		
		isShow18(){
			
			if(this.model.isDesire=="否" || this.model.willingness=='' || this.model.willingness=="暂不找工作（照顾家人、自己身体不好、处理家务事、准备考试）" || this.model.willingness=="暂无就业意愿" || this.model.willingness=="考研"){
				this.model.outTime=null;
				this.model.obtainType='';
				this.model.desireArea='';
				this.model.proposedJobType='';
				this.model.yxType='';
				this.model.expectMonthMoney='';
				return false;
			}else if(this.model.willingness =="正在找工作"){
				return true;
			}
		},
		isShow19(){
			if(this.model.currState==="未就业" || this.model.currState==="务农" || this.model.currState==="退出劳动力市场" || this.model.setupArea==="退出劳动力市场" || this.model.setupArea==="省外" || this.model.setupArea==="省内区外" || this.model.setupArea==="区内乡外" || this.model.setupArea==="乡内"){
				this.model.wetCountry=''
				return false;
			}else if(this.model.setupArea==="国外"){
				return true;
			}
		},
		isShow20(){
			if(this.model.currState==="未就业" || this.model.currState==="务农" || this.model.currState==="退出劳动力市场" || this.model.workMode==="灵活就业" || this.model.workMode==="单位就业" || this.model.workMode==="公益性岗位安置" || this.model.workMode==="就业帮扶车间（基地）吸纳" || this.model.workMode==="其它方式就业"){
				this.model.obtainNum=''
				return false;
			}else if(this.model.workMode==="自主创业"){
				return true;
			}
		},
		isShow21(){
			if(this.model.currState==="未就业" || this.model.currState==="退出劳动力市场" || this.model.setupArea =="国外"){
				this.model.jiuyedizhi=[]
				return false;
			}else if(this.model.setupArea =="省外" || this.model.setupArea =="省内区外" || this.model.setupArea =="区内乡外" || this.model.setupArea =="乡内" ){
				return true;
			}
		},
		
		isShow22(){
			
			if(this.model.ifGohome==="否"){
				return false;
			} else if(this.model.gohomeSrc =="省外" || this.model.gohomeSrc =="市外省内" || this.model.gohomeSrc =="区外市内" || this.model.gohomeSrc =="区内乡外"){
				return true;
			}
		},
		
		isShow23(){
			
			if(this.model.desireArea=='' || this.model.willingness==="暂不找工作（照顾家人、自己身体不好、处理家务事、准备考试）" || this.model.willingness==="暂无就业意愿" || this.model.willingness==="考研" || this.model.isDesire==="否" || this.model.desireArea==="国外" ){
				this.model.outAddress='';
				return false;
			} else if(this.model.desireArea =="省外" || this.model.desireArea =="省内区外" || this.model.desireArea =="区内"){
				return true;
			}
		},
		isShow24(){
			
			if(this.model.currState==="未就业" ||this.model.currState==="务农" || this.model.currState==="退出劳动力市场" ||  this.model.workMode==="单位就业" || this.model.workMode==="公益性岗位安置" || this.model.workMode==="就业帮扶车间（基地）吸纳" || this.model.workMode==="其它方式就业"|| this.model.workMode==="自主创业"){
				this.model.flexible='';
				return false;
			}else if(this.model.workMode==="灵活就业"){
				return true;
			}
		},
		isShow25(){
			
			if(this.model.isDesire==="是"){
				return true;
			}else if(this.model.isDesire=="" || this.model.isDesire==="否"){
				this.model.willingness='';
				return false;
			}
		},
		
		isShow26(){
			if(this.model.currState==="未就业" || this.model.currState==="退出劳动力市场" || this.model.setupArea==="国外"){
				this.model.workCountry=''
				return false;
			}else if(this.model.setupArea==="省外" || this.model.setupArea==="省内区外" || this.model.setupArea==="区内乡外" || this.model.setupArea==="乡内"){
				return true;
			}
		},
		isShow27(){
			
			if(this.model.currState==="未就业" || this.model.currState==="退出劳动力市场" ){
				this.model.workMode='';
				this.model.setupArea='';
				this.model.createCompanyName='';
				this.model.workStartTime=null;
				this.model.obtainNum='';
				this.model.industryClassify='';
				return false;
			}else{				
				return true;
			}
		},
		isShow28(){
			
			if(this.model.currState==="未就业" || this.model.currState==="务农" || this.model.currState==="退出劳动力市场" ){
				this.model.isOrgLabor='';
				this.model.monthMoney='';
				this.model.yearMoney='';
				return false;
			}else{
				return true;
			}
		},
		isShow29(){
			if(this.model.gohomeSrc =="区内乡外"){
				return true;
			}else if(this.model.currState =="未就业" || this.model.currState =="务农" || this.model.currState =="退出劳动力市场" || this.model.ifGohome=="否"  || this.model.gohomeSrc=="国外" || this.model.gohomeSrc=="省外" || this.model.gohomeSrc=="市外省内" || this.model.gohomeSrc=="区外市内"){
				this.model.gohomeTownship='';
				return false;
			}
			// if(this.model.currState =="未就业" || this.model.currState =="务农" || this.model.currState =="退出劳动力市场" || this.model.ifGohome=="否"  || this.model.gohomeSrc=="国外" || this.model.gohomeSrc=="省外" || this.model.gohomeSrc=="市外省内" || this.model.gohomeSrc=="区外市内"){
			// 	this.model.gohomeTownship='';
			// 	return false;
			// }else if(this.model.gohomeSrc =="区内乡外"){
			// 	return true;
			// }
		},
		
	},
	onReady() {
		this.$refs.uForm.setRules(this.rules);
	},
	
	methods: {	
		currStateIs(e){
			this.currStateShow=true;
			// this.current=2;
			console.log(this.model.currState,"this.model.currState");
			console.log(e,'eeeee');
			
			
		},
		
		
		async liveCountry1(){
			// 查询镇:   app/govLabor/getDept?pid=1067246875800000066 
			const res =await this.$myRequest({
				url: api.queryTown,
				method: "GET",
				data: {
					pid:"1067246875800000066"
				},
			});			
			const list1 = res?.data?.list?.map(s => {
				return {
					value: s.name,
					label: s.name,
					id:s.id
				}
			})
			this.liveCountryList=list1
			this.hujiCountryList=list1
			// this.workCountryList=list1
			console.log(this.hujiCountryList,2626);
		},
		
		// 根据常住地镇id获取村
		async liveVillage1(pid){
			// 查询村:   app/govLabor/getDept?pid=所选镇的ID
			console.log(pid,'IIIIIII');
			const res =await this.$myRequest({
				url: api.queryTown,
				method: "GET",
				data: {
					pid
				},
			});
			
			const list1 = res?.data?.list?.map(s => {
				return {
					value: s.name,
					label: s.name,
					id:s.id
				}
			})
			this.liveVillageList=list1
			this.hujiVillageList=list1
			console.log(this.hujiVillageList,5252);
		},
		// 根据户籍地镇id获取村
		async hujiVillage1(pid){
			// 查询村:   app/govLabor/getDept?pid=所选镇的ID
			console.log(pid,'IIIIIII');
			const res =await this.$myRequest({
				url: api.queryTown,
				method: "GET",
				data: {
					pid
				},
			});
			
			const list1 = res?.data?.list?.map(s => {
				return {
					value: s.name,
					label: s.name,
					id:s.id
				}
			})
			this.hujiVillageList=list1
			console.log(this.hujiVillageList,5252);
		},
		goback() {

			this.noInfo = true;
		},
		goback1() {
		
			this.yesInfo = true;
		},
		addUser(){  //点击新增执行事件函数
			this.goback1();
			this.noInfo=false;
			console.log('新增');
			
		},

		async search(value) {
			// 610631199003151026

			if (this.parseId(value)) {
				this.$u.toast('请输入正确的身份证号')
				return
			}
			const res1 = await this.$myRequest({
				url: api.getByIdCard,
				method: "GET",
				data: {
					idCard: value
				},
			});
			console.log(res1,"查询");
			if(res1.data.code==0){
				this.yesInfo1 = res1.data.data ? true : false
				if(res1.data.data){
					this.model = res1.data.data
				
					this.model.hujidizhi=this.model.hujiProvince+'-'+this.model.hujiCity+'-'+this.model.hujiArea
					this.model.changzhuAddr=this.model.liveProvince+'-'+this.model.liveCity+'-'+this.model.liveArea
					this.model.jiuyedizhi =this.model.workProvince+'-'+this.model.workCity+'-'+this.model.workArea
				    this.model.yixiangdizhi = this.model.yxProvince+'-'+this.model.yxCity+'-'+this.model.yxArea
					this.model.gohomeAdd = this.model.gohomeFrontProvince+'-'+this.model.gohomeFrontCity+'-'+this.model.gohomeFrontArea
					this.model.outAddress = this.model.outProvince+'-'+this.model.outCity+'-'+this.model.outArea
					
					this.model.age = this.getIdCardInfo(this.model.idCard, 3)
					this.model.sex = this.getIdCardInfo(this.model.idCard, 2)
					this.goback1()  //通过身份证查找用户信息
				}else{
					this.yesInfo = false
					this.goback() //通过身份证未找到用户信息，显示新增按钮
					
					this.model= {
						//======= 基本信息  begin=====
						headName: '', // 户主姓名
						headIdCard:'',//户主身份证号
						laborName: '', // 劳动者姓名
						headRelation: '', // 与户主关系
						idCard: value, // 劳动者身份证号 110101199003070134
						age: this.getIdCardInfo(value, 3), // 年龄
						sex: this.getIdCardInfo(value, 2), // 性别
						ethnicity: '', // 族别
						education: '', // 文化程度
						graduationTime: null, // 毕业时间（大专、高职及以上毕业生）
						skills: '', // 技能特长
						povertyAttr: '', // 贫困属性
						isMove: '', // 是否易扶搬迁户	
						isSoldier: '', // 是否退役军人	
						isRecovery: '', // 是否戒毒康复人员	
						isBurstDiff: '', // 是否突发困难人员	
						burstReason: '', // 突发原因	
						isPrison: '', // 是否刑满释放人员	
						isLoseWork: '', // 是否城镇登记失业人员	
						isJobDiff: '', // 是否就业困难人员	
						isDisabled: '', // 是否残疾人劳动力	
						isOrgLabor: '', // 是否为组织劳务输出	
						orgLaborType: '', // 组织劳务输出类型	
						hujidizhi: '', //自己定义的为了界面展示
						hujiProvince: '', // 户籍地	
						hujiCity: '', //户籍地-市
						hujiArea: '', //户籍地-区（县、市）
						hujiCountry: '', //户籍地-镇（乡、街道）
						hujiVillage: '', //户籍地-村（居、社区）
					
					
						changzhuAddr: '', // 常住地	
						liveProvince: '', //常住地-省（直辖市、自治区）
						liveCity: '', //常住地-市
						liveArea: '', //常住地-区（县、市）
						liveCountry: '', //常住地-镇（居、社区）
						liveVillage: '', //常住地-村（直辖市、自治区）
						tell: '', // 联系电话	
						accountAttr: '', // 户口属性	
						isGovernment: '', // 是否公务员或事业单位正式工作人员
						
						
						university:'', //毕业院校（大专及以上学历填写）
						major:'', //专业（大专及以上学历填写）
						sitename:'', //易扶搬迁户所在安置点名称
						difficultType:'', //就业困难人员类型
						disabilityType:'', //残疾类别等级
						ifDifficult:'', //是否特困户
						ifHiGraduate:'', //是否高校毕业生
						ifSetup:'', //是否自主创业人员
						hjGrid:'', //户籍地-小组或网格
						isLabor:'',//是否劳动力
						//======= 基本信息  end=====
						
						//======= 返乡信息  begin=====
						ifGohome:'', //是否返乡人员
						gohomeSrc:'', //返乡来源地(国外、省外、市外省内、区外市内、区内乡外）
						gohomeCountry:'', //返乡前工作地点-国家
						gohomeFrontProvince:'', //返乡前工作地点-省
						gohomeFrontCity:'', //返乡前工作地点-市
						gohomeFrontArea:'', //返乡前工作地点-县、区
						gohomeTownship:'',//返乡前工作地点-镇、乡、街道
						gohomeReason:'', //返乡原因 
						ifGohomeWork:'', //返乡后是否就业
						gohomeAdd:'', //返乡前地址
						inputGoHomeCountry:'', //请输入返乡前国家
						
						
						
						//======= 返乡信息  end=====
						
						//======= 就业信息  begin=====
						currState: "", // 目前状态
						farmingIncome: '', // 务农年收入
						jiuyedizhi: '',
						workMode: '', // 就业方式
						workCompany: '', // 就业单位名称	
						workProvince: '', // 省（直辖市、自治区）
						workCity: '', // 市	县（区、市）
						workArea: '', // 镇（乡、街道）
						workType: "", // 工种
					
						workStartTime: null, // 创业或就业起始时间
						industryClassify: '', // 行业类别
						flexible: '', // 灵活就业方式
						monthMoney: "", // 月均收入（不填年收入）
						yearMoney: '', // 年均收入（不填月工资）
						gohomeTime: null, // 返乡时间
						
						setupArea:'', //创业就业区域
						setupCountry:'', //国家
						isFarming:'', //是否务农
						//======= 就业信息  end=====
					
					
						//======= 就业意愿  begin=====
					
						unemployedReason: "", // 未就业原因
						isDesire: '', // 是否有就业意愿
						desireMode: "", // 就业意向方式
					
						yixiangdizhi: '',
						yxProvince: '', // 意向-省（直辖市、自治区）
						yxCity: '', // 	意向-市
						yxArea: '', //意向-县（区、市）
						yxCompany: '', // 企业名称	
						yxWorkType: '', //工种
						yxIndustry: "", // 求职意向行业
						yxType: "", // 求职意向类型	
						expectMonthMoney: '', // 期望月工资	
						train: '', // 培训意愿
						wetCountry:'', //请输入就业国家
					
						//======= 就业意愿  end=====
						//======= 就业服务  begin=====
					
						createCompanyName: "", // 创办企业名称
						createCompanyTime: null, // 创业时间
						companyBusiness: "", // 企业从事经营
						obtainNum: '', // 创业带动就业人数	
						assureMoney: "", // 享受创业担保贷款（万元）
						applyMoney: "", // 拟申请创业担保贷款（万元）
						
						isOpenWork:'', //是否开展就业服务
						ifServiceWork:'', //是否是开展就业服务后就业
						ifLoan:'', //是否享受创业担保贷款政策
						workSubsidies:'', //享受求职创业补贴或交通补贴情况-求职创业补贴（元）
						trafficSubsidies:'', //享受求职创业补贴或交通补贴情况-交通补贴（元）
						hireSubsidies:'', //享受经营场所租赁补贴和自主创业补贴情况-经营场所租赁补贴（元）
						ownSubsidies:'', //享受经营场所租赁补贴和自主创业补贴情况-自主创业补贴（元）
						flexibleSubsidies:'', //是否享受灵活就业社会保险补贴
					
						//======= 就业服务  end=====
					
					
						//======= 创业意愿  begin=====
						companyBusiness2: "", // 从事经营	
						isTrain: "", // 是否需要参加培训	
						applyMoneyOk: "", // 申请创业担保贷款（万元）
						remark: "", // 备注
						//======= 创业意愿  end=====
						
						//======= 失业信息  begin=====
						
						politicalOutlook:'' ,//政治面貌
						dibao:'', //低保家庭
						grid:'', //常住-小组或网格
						provideServices:'', //是否是开展就业服务后就业
						welfare:'', //是否公益性岗位或乡村公益性岗位
						unemploymentReasons:'', //失业原因
						willingness:'', //再就业意愿
						unemploymentTime:null, //失业时间
						planOutTime:null, // 计划外出时间
						proposedJobType:'', //拟从事工种
						measures:'', //开展就业服务措施
						
						desireArea:'', //就业意愿区域
						outTime:null, //拟计划外出务工时间
						outProvince:'', //拟外出就业地址-省（直辖市、自治区）
						outCity:'', //拟外出就业地址-市
						outArea:'', //拟外出就业地址-县（区、市）
						desireType:'', //求职意向类型(用工形式）
						obtainType:'', //拟就业方式
						outAddress:'', //拟外出就业地址
						exitReason:'', //退出劳动力市场原因（下拉）
						//======= 失业信息  end=====
						
					
					}
					
				
					// this.model.idCard = value
					// this.model.age = this.getIdCardInfo(value, 3)
					// this.model.sex = this.getIdCardInfo(value, 2)
					
				}
			}
			
			
			console.log(res1, 8989);
		},


		regionConfirm1(e) {
			this.model.hujiProvince = e.province.label
			this.model.hujiCity = e.city.label
			this.model.hujiArea = e.area.label
			this.model.hujidizhi =
			e.province.label + "-" + e.city.label + "-" + e.area.label;
			// this.defultArr=[e.province.value,e.city.value,e.area.value]
			if(this.model.hujidizhi=="贵州省-六盘水市-钟山区"){
				this.hujiShow1=false;
				this.hujiShow2=true;
			}else{
				this.hujiShow1=true;
				this.hujiShow2=false;
			}
			
		},
		
		regionConfirm2(e) {

			this.model.liveProvince = e.province.label
			this.model.liveCity = e.city.label
			this.model.liveArea = e.area.label
			this.model.changzhuAddr =
			e.province.label + "-" + e.city.label + "-" + e.area.label;
			console.log(this.model.changzhuAddr,"this.model.changzhuAddr");
			if(this.model.changzhuAddr=="贵州省-六盘水市-钟山区"){
				this.liveShow1=false;
				this.liveShow2=true;
			}else{
				this.liveShow1=true;
				this.liveShow2=false;
			}
			

		},
		regionConfirm3(e) {
			this.model.workProvince = e.province.label
			this.model.workCity = e.city.label
			this.model.workArea = e.area.label
			this.model.jiuyedizhi =
				e.province.label + "-" + e.city.label + "-" + e.area.label;
			// this.defultArr=[e.province.value,e.city.value,e.area.value]
			if(this.model.jiuyedizhi=="贵州省-六盘水市-钟山区"){
				this.workShow2=true;
			}else{
				this.workShow2=false;
			}

		},
		regionConfirm4(e) {
			this.model.yxProvince = e.province.label
			this.model.yxCity = e.city.label
			this.model.yxArea = e.area.label
			this.model.yixiangdizhi =
				e.province.label + "-" + e.city.label + "-" + e.area.label;

		},
		regionConfirm5(e) {
			this.model.gohomeFrontProvince = e.province.label
			this.model.gohomeFrontCity = e.city.label
			this.model.gohomeFrontArea = e.area.label
			this.model.gohomeAdd =
				e.province.label + "-" + e.city.label + "-" + e.area.label;
			this.defultArr=[e.province.value,e.city.value,e.area.value]
		
		},
		
		regionConfirm6(e) {
			this.model.outProvince = e.province.label
			this.model.outCity = e.city.label
			this.model.outArea = e.area.label
			this.model.outAddress =
			e.province.label + "-" + e.city.label + "-" + e.area.label;
			this.defultArr=[e.province.value,e.city.value,e.area.value]
		
		},
		
		
		

		async getdictionary(code) {
			const res1 = await this.$myRequest({
				url: api.dictionary1,
				method: "GET",
				data: {
					code
				},
			});
			// console.log(res1,1228);
			
			const lists = res1?.data?.list?.map(s => {
				return {
					value: s.dict_value,
					label: s.dict_label
				}
			})
			this[`${code}List`] = lists
		},


		FnConfirm(val, name, type) {
			if (type) {
				this.model[type] = name[0].value
			} else {
				this.model[val] = name[0].value
			}
			// 常住地，根据镇id获取村
			if(val=='liveCountry'){
				let id = this.getLiveCountryId(name[0].value);
				console.log(id, 'z-------');
				this.liveVillage1(id)
				
			}
			// 户籍地，根据镇id获取村
			if(val=='hujiCountry'){
				let id = this.getLiveCountryId(name[0].value);
				console.log(id, 'z-------');
				this.hujiVillage1(id)
				
			}
			if(val=='currState' && name[0].label=='已就业' || name[0].label=='退出劳动力市场' || name[0].label=='务农' || name[0].label=='未就业'){
				this.model.unemploymentTime=null
				this.model.unemployedReason=''
				this.model.isDesire=''
				console.log(name[0].label,'name[0].label');
			}
			
		},
		getLiveCountryId(name){
			let id = null;
			for (var i = 0; i < this.liveCountryList.length; i++) {
				let item =  this.liveCountryList[i];
				if(item.value==name){
					id = item.id;
					break;
				}
		 
			}
			return id;
		},
		// skillsConfirm
		changegraduationTimes(e) {
			// this.model.graduationTime = e.result+' 00:00:00';
			this.model.graduationTime = e.year+"-"+e.month+"-"+e.day;
			console.log(e, '选择的时间');
			console.log(this.rules, '判断！！');
			
		},
		changegraduationTimes1(e) { //
			// this.model.workStartTime = e.result+' 00:00:00';
			this.model.workStartTime = e.year+"-"+e.month+"-"+e.day;
			console.log(e, '选择的时间');
		},
		
		changegraduationTimes2(e) {
			// this.model.gohomeTime = e.result+' 00:00:00';
			this.model.gohomeTime = e.year+"-"+e.month+"-"+e.day;
			console.log(e, '选择的时间');
		},
		changegraduationTimes3(e) {
			this.model.createCompanyTime = e.result+' 00:00:00';
			console.log(e, '选择的时间');
		},
		
		
		changegraduationTimes4(e) { //失业时间
			// this.model.unemploymentTime = e.result+' 00:00:00';
			this.model.unemploymentTime = e.year+"-"+e.month+"-"+e.day;
			console.log(e, '选择的时间');
		},
		changegraduationTimes5(e) { //计划外出时间
			this.model.planOutTime = e.result+' 00:00:00';
			console.log(e, '选择的时间');
		},
		
		changegraduationTimes6(e) {
			// this.model.outTime = e.result+' 00:00:00';
			this.model.outTime = e.year+"-"+e.month+"-"+e.day;
			console.log(e, '选择的时间');
		},
		
		getIdCardInfo(UUserCard, num) {
			if (num == 1) {
				//获取出生日期
				// str.substring(a,b)  a为开始截取的下标，b为结束截取的下标（不包括b)
				var birth = UUserCard.substring(6, 10) + "-" + UUserCard.substring(10, 12) + "-" + UUserCard.substring(
					12, 14);
					// 522321200011165563
					
				return birth;
			}
			if (num == 2) {
				//获取性别
				// str.substr(a,b)  a为开始位置，b为截取多少位
				if (parseInt(UUserCard.substr(16, 1)) % 2 == 1) {
					//男
					return "男";
				} else {
					//女
					return "女";
				}
			}
			if (num == 3) {
				//获取年龄
				var myDate = new Date();
				var month = myDate.getMonth() + 1;
				var day = myDate.getDate();
				var age = myDate.getFullYear() - UUserCard.substring(6, 10) - 1;
				if (UUserCard.substring(10, 12) < month || UUserCard.substring(10, 12) == month && UUserCard.substring(
					12, 14) <= day) {
					age++;
				}
				return age;
			}
		},
		parseId(pId) {
			if(pId.length==20){
				pId = pId.substring(0,18);
			}
			console.log(pId+",pId==")
			var arrVerifyCode = [1, 0, "x", 9, 8, 7, 6, 5, 4, 3, 2];
			var wi = [7, 9, 10, 5, 8, 4, 2, 1, 6, 3, 7, 9, 10, 5, 8, 4, 2];
			if (pId.length != 15 && pId.length != 18 )
				return true;
			var ai = (pId.length == 18  ) ? pId.substr(0, 17) : pId.substr(0, 6) + "19" + pId.substr(6);
			if (!/^\d+$/.test(ai))
				return true;
			var yyyy = ai.substr(6, 4),
				mm = ai.substr(10, 2) - 1,
				dd = ai.substr(12, 2);
			var d = new Date(yyyy, mm, dd),
				year = d.getFullYear(),
				mon = d.getMonth(),
				day = d.getDate(),
				now = new Date();
			if (year != yyyy || mon != mm || day != dd || d > now || now.getFullYear() - year > 140)
				return true;
			for (var i = 0, ret = 0; i < 17; i++) ret += ai.charAt(i) * wi[i];
			ai += arrVerifyCode[ret %= 11];
			// str.toLowerCase()转换字符串小写字母
			if (pId.length == 18 && pId.toLowerCase() != ai)
				return true;

			return false;
		},
		changeTab(index) {
			this.current = index;
		},
		submit() {
			this.$refs.uForm.validate(valid => {
				if (valid) {
					
					// 文化程度
					if(this.model.education =='博士研究生' || this.model.education =='硕士研究生' || this.model.education =='大学本科' || this.model.education =='大学专科'){
						
						if (this.model.graduationTime==null) {
						    uni.showToast({
						      icon: "none",
						      title: "毕业时间不能为空",
						    });
						    return;
						}
						
						// if (this.model.university=='') {
						//     uni.showToast({
						//       icon: "none",
						//       title: "毕业院校不能为空",
						//     });
						// 	console.log("毕业时间？？？555");
						//     return;
						// }
						
						// if (this.model.major=='') {
						//     uni.showToast({
						//       icon: "none",
						//       title: "专业不能为空",
						//     });
						// 	console.log("毕业时间？？？555");
						//     return;
						// }
					}
					// // 是否搬迁户
					if(this.model.isMove=='是'){
						if (this.model.sitename=='') {
						    uni.showToast({
						      icon: "none",
						      title: "易扶搬迁户所在安置点名称不能为空",
						    });
						    return;
						}
					}
					
					// // 是否突发困难人员
					if(this.model.isBurstDiff=='是'){
						if (this.model.burstReason=='') {
						    uni.showToast({
						      icon: "none",
						      title: "突发原因不能为空",
						    });
						    return;
						}
					}
					
					// // 是否就业困难人员
					if(this.model.isJobDiff=='是'){
						if (this.model.difficultType=='') {
						    uni.showToast({
						      icon: "none",
						      title: "就业困难人员类型不能为空",
						    });
						    return;
						}
					}
					
					// 户籍地
					if (this.model.hujidizhi=='') {
					    uni.showToast({
					      icon: "none",
					      title: "户籍地不能为空",
					    });
					    return;
					}
					// 常住地
					if (this.model.changzhuAddr=='') {
					    uni.showToast({
					      icon: "none",
					      title: "常住地不能为空",
					    });
					    return;
					}
					
					if (this.model.liveCountry=='') {
					    uni.showToast({
					      icon: "none",
					      title: "常住地-镇不能为空",
					    });
					    return;
					}
					
					if (this.model.liveVillage=='') {
					    uni.showToast({
					      icon: "none",
					      title: "常住地-村不能为空",
					    });
					    return;
					}
					
					// // 是否返乡人员
					if(this.model.ifGohome=='是'){
						if (this.model.gohomeTime==null) {
						    uni.showToast({
						      icon: "none",
						      title: "返乡时间不能为空",
						    });
						    return;
						}
						
						if (this.model.gohomeSrc=='') {
						    uni.showToast({
						      icon: "none",
						      title: "返乡来源地不能为空",
						    });
						    return;
						}else if(this.model.gohomeSrc=='国外'){
							if (this.model.inputGoHomeCountry=='') {
							    uni.showToast({
							      icon: "none",
							      title: "返乡前国家不能为空",
							    });
							    return;
							}
						}else if(this.model.gohomeSrc=='省外' || this.model.gohomeSrc=='市外省内' || this.model.gohomeSrc=='区外市内'){
							if (this.model.gohomeAdd=='') {
							    uni.showToast({
							      icon: "none",
							      title: "返乡前工作地-省市区不能为空",
							    });
							    return;
							}
						}else if(this.model.gohomeSrc=='区内乡外'){
							if (this.model.gohomeAdd=='') {
							    uni.showToast({
							      icon: "none",
							      title: "返乡前工作地-省市区不能为空",
							    });
							    return;
							}
							
							if (this.model.gohomeTownship=='') {
							    uni.showToast({
							      icon: "none",
							      title: "返乡前工作地-镇不能为空",
							    });
							    return;
							}
						}
						
						if (this.model.gohomeReason=='') {
						    uni.showToast({
						      icon: "none",
						      title: "返乡原因不能为空",
						    });
						    return;
						}
												
						if (this.model.ifGohomeWork=='') {
						    uni.showToast({
						      icon: "none",
						      title: "返乡后是否就业不能为空",
						    });
						    return;
						}else if(this.model.ifGohomeWork=='是'){
							if (this.model.currState=='') {
							    uni.showToast({
							      icon: "none",
							      title: "目前状态不能为空",
							    });
							    return;
							}
						}
					}
					
					// // 目前状态
					if(this.model.currState=='已就业'){
						if (this.model.workMode=='') {
						    uni.showToast({
						      icon: "none",
						      title: "就业方式不能为空",
						    });
						    return;
						}else if(this.model.workMode=='灵活就业'){
							if (this.model.flexible=='') {
							    uni.showToast({
							      icon: "none",
							      title: "灵活就业方式不能为空",
							    });
							    return;
							}
						}else if(this.model.workMode=='自主创业'){
							if (this.model.obtainNum=='') {
							    uni.showToast({
							      icon: "none",
							      title: "创业带动就业人数不能为空",
							    });
							    return;
							}
						}
						
						if (this.model.isOrgLabor=='') {
						    uni.showToast({
						      icon: "none",
						      title: "是否为劳务组织输出不能为空",
						    });
						    return;
						}else if(this.model.isOrgLabor=='是'){
							if (this.model.orgLaborType=='') {
							    uni.showToast({
							      icon: "none",
							      title: "组织劳务输出类型不能为空",
							    });
							    return;
							}
						}
						
						if (this.model.setupArea=='') {
						    uni.showToast({
						      icon: "none",
						      title: "创业或就业区域不能为空",
						    });
						    return;
						}else if(this.model.setupArea=='国外'){
							if (this.model.wetCountry=='') {
							    uni.showToast({
							      icon: "none",
							      title: "就业国家不能为空",
							    });
							    return;
							}
						}else if(this.model.setupArea=='省外' || this.model.setupArea=='省内区外' || this.model.setupArea=='区内乡外' || this.model.setupArea=='乡内'){
							if (this.model.jiuyedizhi=='') {
							    uni.showToast({
							      icon: "none",
							      title: "就业地-省市区不能为空",
							    });
							    return;
							}
							if (this.model.workCountry=='') {
							    uni.showToast({
							      icon: "none",
							      title: "就业地-镇不能为空",
							    });
							    return;
							}
						}
						
						if (this.model.createCompanyName=='') {
						    uni.showToast({
						      icon: "none",
						      title: "创业或就业单位不能为空",
						    });
						    return;
						}
						
						if (this.model.workStartTime==null) {
						    uni.showToast({
						      icon: "none",
						      title: "创业或就业起始时间不能为空",
						    });
						    return;
						}
						
						if (this.model.industryClassify=='') {
						    uni.showToast({
						      icon: "none",
						      title: "行业类别不能为空",
						    });
						    return;
						}
						
						if (this.model.monthMoney=='') {
						    uni.showToast({
						      icon: "none",
						      title: "月均收入不能为空",
						    });
						    return;
						}
							 
						if (this.model.yearMoney=='') {
						    uni.showToast({
						      icon: "none",
						      title: "年均收入不能为空",
						    });
						    return;
						}
						
						
						
						
				}else if(this.model.currState=='务农'){
					
					if (this.model.farmingIncome=='') {
					    uni.showToast({
					      icon: "none",
					      title: "务农年收入不能为空",
					    });
					    return;
					}
					
					if (this.model.workMode=='') {
					    uni.showToast({
					      icon: "none",
					      title: "就业方式不能为空",
					    });
					    return;
					}
					
					if (this.model.setupArea=='') {
					    uni.showToast({
					      icon: "none",
					      title: "创业或就业区域不能为空",
					    });
					    return;
					}else if(this.model.setupArea=='省外' || this.model.setupArea=='省内区外' || this.model.setupArea=='区内乡外' || this.model.setupArea=='乡内'){
						if (this.model.jiuyedizhi=='') {
						    uni.showToast({
						      icon: "none",
						      title: "就业地-省市区不能为空",
						    });
						    return;
						}
						if (this.model.workCountry=='') {
						    uni.showToast({
						      icon: "none",
						      title: "就业地-镇不能为空",
						    });
						    return;
						}
					}
					
					if (this.model.createCompanyName=='') {
					    uni.showToast({
					      icon: "none",
					      title: "创业或就业单位不能为空",
					    });
					    return;
					}
					
					if (this.model.workStartTime==null) {
					    uni.showToast({
					      icon: "none",
					      title: "创业或就业起始时间不能为空",
					    });
					    return;
					}
					
					if (this.model.industryClassify=='') {
					    uni.showToast({
					      icon: "none",
					      title: "行业类别不能为空",
					    });
					    return;
					}
					
					
					
					
					
					
					
				}else if(this.model.currState=='未就业'){  //失业信息
					if (this.model.unemploymentTime==null) {
					    uni.showToast({
					      icon: "none",
					      title: "失业时间不能为空",
					    });
					    return;
					}
					if (this.model.unemployedReason=='') {
					    uni.showToast({
					      icon: "none",
					      title: "失业原因不能为空",
					    });
					    return;
					
					}
					if (this.model.isDesire=='') {
					    uni.showToast({
					      icon: "none",
					      title: "是否有就业意愿不能为空",
					    });
					    return;
					}else if(this.model.isDesire=='是'){
						if (this.model.willingness=='') {
						    uni.showToast({
						      icon: "none",
						      title: "再就业意愿不能为空",
						    });
						    return;
						}else if(this.model.willingness=='正在找工作'){
							if (this.model.outTime==null) {
							    uni.showToast({
							      icon: "none",
							      title: "拟计划外出务工时间不能为空",
							    });
							    return;
							}
							
							if (this.model.desireArea=='') {
							    uni.showToast({
							      icon: "none",
							      title: "就业意愿区域不能为空",
							    });
							    return;
							}else if(this.model.desireArea=='国外'){
								if (this.model.workWillingCountry=='') {
								    uni.showToast({
								      icon: "none",
								      title: "就业意愿国家不能为空",
								    });
								    return;
								}
							}else if(this.model.desireArea=='省外' || this.model.desireArea=='省内区外' || this.model.desireArea=='区内'){
								if (this.model.outAddress=='') {
								    uni.showToast({
								      icon: "none",
								      title: "拟外出就业地址不能为空",
								    });
								    return;
								}
							}
							
							if (this.model.obtainType=='') {
							    uni.showToast({
							      icon: "none",
							      title: "拟就业方式不能为空",
							    });
							    return;
							}
							
							if (this.model.proposedJobType=='') {
							    uni.showToast({
							      icon: "none",
							      title: "拟从事工种不能为空",
							    });
							    return;
							}
							
							if (this.model.yxType=='') {
							    uni.showToast({
							      icon: "none",
							      title: "求职意向类型不能为空",
							    });
							    return;
							}
							
							if (this.model.expectMonthMoney=='') {
							    uni.showToast({
							      icon: "none",
							      title: "期望月工资不能为空",
							    });
							    return;
							}
						}
					}
					
					// 新增  ---model.isOpenWork是否开展就业服务
					if (this.model.isOpenWork=='') {
					    uni.showToast({
					      icon: "none",
					      title: "是否开展就业服务不能为空",
					    });
					    return;					
					}else if(this.model.isOpenWork=='是'){
						if (this.model.measures=='') {
						    uni.showToast({
						      icon: "none",
						      title: "开展就业服务措施不能为空",
						    });
						    return;						
						}
						
						if (this.model.ifServiceWork=='') {
						    uni.showToast({
						      icon: "none",
						      title: "是否是开展就业服务后就业不能为空",
						    });
						    return;						
						}
					}
					
					
				}else if(this.model.currState=='退出劳动力市场'){
					if (this.model.exitReason=='') {
					    uni.showToast({
					      icon: "none",
					      title: "退出劳动力市场原因不能为空",
					    });
					    return;
					}
				}
				
				// 就业服务
				if (this.model.train=='是') {
					if (this.model.yxWorkType=='') {
					    uni.showToast({
					      icon: "none",
					      title: "意向培训工种不能为空",
					    });
					    return;
					}
				    
				}
				
				if (this.model.isOpenWork=='是') {
					if (this.model.measures=='') {
					    uni.showToast({
					      icon: "none",
					      title: "开展就业服务措施不能为空",
					    });
					    return;
					}
				    
				}
				
				if (this.model.ifLoan=='是') {
					if (this.model.assureMoney=='') {
					    uni.showToast({
					      icon: "none",
					      title: "享受创业担保贷款不能为空",
					    });
					    return;
					}
				    
				}
				
				if (this.model.isApplyMoney=='是') {
					if (this.model.applyMoney=='') {
					    uni.showToast({
					      icon: "none",
					      title: "拟申请创业担保贷款不能为空",
					    });
					    return;
					}
				    
				}
				
				
					
					
					
					
					this.$myRequest({
						url: api.saveOrUpdate,
						method: "POST",
						data: { ...this.model },
					}).then(res => {
						console.log(res,'%%%%%%%%%%%%%%%')
						if(res.data.code==0){
							if(this.yesInfo1){
								this.$u.toast(res.data.msg);
								this.yesInfo=false; //修改成功后隐藏表单
							}else{
								this.$u.toast(res.data.msg);
								this.yesInfo=false; //保存成功后隐藏表单
							}
						}else{
							this.$u.toast(res.msg)
						}
						
					})
					console.log('验证通过');
				} else {
					console.log('验证失败');
				}
								
			});
			
			
			
		},
		// 点击actionSheet回调
		actionSheetCallback(index) {
			uni.hideKeyboard();
			this.model.sex = this.actionSheetList[index].text;
		},
		// checkbox选择发生变化
		checkboxGroupChange(e) {
			this.model.likeFruit = e;
		},
		// radio选择发生变化
		radioGroupChange(e) {
			this.model.payType = e;
		},


		// 选择商品类型回调
		selectConfirm(e) {
			this.model.goodsType = '';
			e.map((val, index) => {
				this.model.goodsType += this.model.goodsType == '' ? val.label : '-' + val.label;
			})
		},

		codeChange(text) {
			this.codeTips = text;
		},
		// 获取验证码
		getCode() {
			if (this.$refs.uCode.canGetCode) {
				// 模拟向后端请求验证码
				uni.showLoading({
					title: '正在获取验证码',
					mask: true
				})
				setTimeout(() => {
					uni.hideLoading();
					// 这里此提示会被this.start()方法中的提示覆盖
					this.$u.toast('验证码已发送');
					// 通知验证码组件内部开始倒计时
					this.$refs.uCode.start();
				}, 2000);
			} else {
				this.$u.toast('倒计时结束后再发送');
			}
		},

	}
};
</script>

<style scoped lang="scss">
.empty {
	padding: 50px 0 0 0;
}

.sunbtn {
	width: 200px;
	background: #2979ff;
	border-radius: 5px;
	height: 35px;
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 20px auto;
	// display: flex;
	// align-items: center;
	// justify-content: center;
}

.plus {
	font-size: 20px;
}

.wrap {
	padding: 150rpx 30rpx 240rpx;
}

.tabBoxs {
	padding: 10px;
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 999;
	background: #fff;
	
}


.btns {
	box-shadow: 0 0 8px #cccccc;
	height: 70px;
	display: flex;
	align-items: center;
	justify-content: center;
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	z-index: 999;
	background: #fff;

	.sub {
		display: block;
		width: 90%;
		margin: 0 auto;
	}
}

.agreement {
	display: flex;
	align-items: center;
	margin: 40rpx 0;

	.agreement-text {
		padding-left: 8rpx;
		color: $u-tips-color;
	}
}
.currView{
	margin: 40px 24px;
	text-align: center;
	color: #cccccc;
}

</style>
